diff --git a/nostr_dvm/tasks/content_discovery_currently_popular_mostr.py b/nostr_dvm/tasks/content_discovery_currently_popular_mostr.py index d5fcf75..4794496 100644 --- a/nostr_dvm/tasks/content_discovery_currently_popular_mostr.py +++ b/nostr_dvm/tasks/content_discovery_currently_popular_mostr.py @@ -221,7 +221,7 @@ class DicoverContentCurrentlyPopularMostr(DVMTaskInterface): # Do not delete profiles await cli.database().delete(Filter().until(Timestamp.from_secs( Timestamp.now().as_secs() - self.db_since))) # Clear old events so db doesn't get too full. - await cli.shutdown() + #await cli.shutdown() if self.dvm_config.LOGLEVEL.value >= LogLevel.DEBUG.value: print( "[" + self.dvm_config.NIP89.NAME + "] Done Syncing Notes of the last " + str( diff --git a/nostr_dvm/tasks/search_users.py b/nostr_dvm/tasks/search_users.py index 2217b41..05cac30 100644 --- a/nostr_dvm/tasks/search_users.py +++ b/nostr_dvm/tasks/search_users.py @@ -49,7 +49,7 @@ class SearchUser(DVMTaskInterface): async def create_request_from_nostr_event(self, event, client=None, dvm_config=None): self.dvm_config = dvm_config - print(self.dvm_config.PRIVATE_KEY) + #print(self.dvm_config.PRIVATE_KEY) request_form = {"jobID": event.id().to_hex()} @@ -104,7 +104,7 @@ class SearchUser(DVMTaskInterface): try: if options["search"].lower() in event.content().lower(): p_tag = Tag.parse(["p", event.author().to_hex()]) - print(event.as_json()) + #print(event.as_json()) result_list.append(p_tag.as_vec()) index += 1 except Exception as exp: @@ -149,9 +149,12 @@ class SearchUser(DVMTaskInterface): # filter = Filter().author(keys.public_key()) print("Syncing Profile Database.. this might take a while..") - dbopts = SyncOptions().direction(SyncDirection.DOWN) - await cli.sync(filter1, dbopts) - print("Done Syncing Profile Database.") + try: + dbopts = SyncOptions().direction(SyncDirection.DOWN) + await cli.sync(filter1, dbopts) + print("Done Syncing Profile Database.") + except Exception as exp: + print(str(exp)) await cli.shutdown() diff --git a/nostr_dvm/utils/outbox_utils.py b/nostr_dvm/utils/outbox_utils.py index e144926..7ae08b8 100644 --- a/nostr_dvm/utils/outbox_utils.py +++ b/nostr_dvm/utils/outbox_utils.py @@ -46,6 +46,6 @@ AVOID_OUTBOX_RELAY_LIST = ["wss://nos.lol", "wss://relay.nostreggs.io", "wss://nostr.rocks", "wss://groups.0xchat.com", "wss://bostr.lecturify.net", "wss://dave.st.germa.in/nostr", "wss://dvms.f7z.io", "wss://nostr.social", "wss://i.nostr.build", "wss://teemie1-relay.duckdns.org", "wss://nostrs.build", "wss://relay.hllo.live", "wss://relay-pub.deschooling.us", "wss://nostr.sandwich.farm", "wss://nostr.lol", "wss://nostr.developer.li", - "wss://paid.spore.ws" + "wss://paid.spore.ws", "'ws://ofotwjuiv7t6q4azt2fjx3qo7esglmxdeqmh2qvdsdnxw5eqgza24iyd.onion", "wss://r.kojira.io", "wss://nostr-relay.h3z.jp", "wss://relay.yozora.world" ]