cleanups, update list

This commit is contained in:
Believethehype 2024-11-10 09:06:00 +01:00
parent a48bfd4184
commit 2ae4be7960
3 changed files with 10 additions and 7 deletions

View File

@ -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(

View File

@ -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()

View File

@ -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"
]