mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 19:02:34 +02:00
fixes for search dvms
This commit is contained in:
@@ -53,8 +53,6 @@ class AdvancedSearch(DVMTaskInterface):
|
|||||||
search = ""
|
search = ""
|
||||||
max_results = 100
|
max_results = 100
|
||||||
relay = "wss://relay.nostr.band"
|
relay = "wss://relay.nostr.band"
|
||||||
if self.options.get("relay") and self.options.get("relay") != "":
|
|
||||||
relay = self.options['relay']
|
|
||||||
|
|
||||||
for tag in event.tags():
|
for tag in event.tags():
|
||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
|
@@ -103,9 +103,9 @@ class AdvancedSearchWine(DVMTaskInterface):
|
|||||||
|
|
||||||
userkeys.append(userkey)
|
userkeys.append(userkey)
|
||||||
|
|
||||||
print("Sending job to Server")
|
print("Sending job to nostr.wine API")
|
||||||
if options["users"]:
|
if options["users"]:
|
||||||
url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + '&pubkey=' + options["users"][0] + "&limit=100" + "&sort=time" + "&until=" + str(options["until"]) + "&since=" + str(options["since"]))
|
url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + '&pubkey=' + options["users"][0][1] + "&limit=100" + "&sort=time" + "&until=" + str(options["until"]) + "&since=" + str(options["since"]))
|
||||||
else:
|
else:
|
||||||
url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + "&limit=100" + "&sort=time" + "&until=" + str(options["until"]) + "&since=" + str(options["since"]))
|
url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + "&limit=100" + "&sort=time" + "&until=" + str(options["until"]) + "&since=" + str(options["since"]))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user