From 1b3cd7f88997b0990ef552f7c54d56cd48d8a894 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 6 Mar 2024 15:01:15 +0100 Subject: [PATCH] optimziations --- nostr_dvm/tasks/discovery_relevant_notes.py | 1 + ui/noogle/src/components/Login.vue | 8 +++----- ui/noogle/src/components/ProfileResultTable.vue | 2 +- ui/noogle/src/components/RecommendationGeneration.vue | 9 ++++----- ui/noogle/src/components/helper/Helper.vue | 6 +++--- 5 files changed, 12 insertions(+), 14 deletions(-) create mode 100644 nostr_dvm/tasks/discovery_relevant_notes.py diff --git a/nostr_dvm/tasks/discovery_relevant_notes.py b/nostr_dvm/tasks/discovery_relevant_notes.py new file mode 100644 index 0000000..2b8b655 --- /dev/null +++ b/nostr_dvm/tasks/discovery_relevant_notes.py @@ -0,0 +1 @@ +from nostr_sdk import Client, Timestamp, PublicKey, Tag, Keys, Options, SecretKey, NostrSigner, EventId diff --git a/ui/noogle/src/components/Login.vue b/ui/noogle/src/components/Login.vue index bce8a0f..f008b10 100644 --- a/ui/noogle/src/components/Login.vue +++ b/ui/noogle/src/components/Login.vue @@ -151,7 +151,7 @@ export default { else { await this.sign_in_anon() } - + await this.getnip89s() } catch (error) { console.log(error); @@ -211,7 +211,6 @@ export default { localStorage.setItem('nostr-key', '') console.log("Client Nip46 connected") await this.get_user_info(pubkey) - await this.getnip89s() await this.reconcile_all_profiles(pubkey) console.log(pubkey.toBech32()) //await this.reconcile_all_profiles() @@ -328,7 +327,6 @@ export default { localStorage.setItem('nostr-key', keys.secretKey.toBech32()) console.log("Client key connected") await this.get_user_info(pubkey) - await this.getnip89s() await this.reconcile_all_profiles(pubkey) @@ -463,7 +461,7 @@ export default { console.log("Client connected") await this.get_user_info(pubkey) - await this.getnip89s() + await this.reconcile_all_profiles(pubkey) @@ -523,7 +521,7 @@ export default { localStorage.setItem('nostr-key', hexKey) await this.get_user_info(publicKey) - await this.getnip89s() + await this.reconcile_all_profiles(publicKey) } diff --git a/ui/noogle/src/components/ProfileResultTable.vue b/ui/noogle/src/components/ProfileResultTable.vue index 5dd53be..dee97ab 100644 --- a/ui/noogle/src/components/ProfileResultTable.vue +++ b/ui/noogle/src/components/ProfileResultTable.vue @@ -1,6 +1,6 @@