mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-04-02 08:58:27 +02:00
Update advanced_search.py
This commit is contained in:
parent
9ffb1caf80
commit
9cca519de7
@ -123,12 +123,12 @@ class AdvancedSearch(DVMTaskInterface):
|
||||
userkeys.append(userkey)
|
||||
|
||||
if not options["users"]:
|
||||
notes_filter = Filter().kind(1).search(options["search"]).since(search_since).until(search_until).limit(options["max_results"])
|
||||
notes_filter = Filter().kind(Kind(1)).search(options["search"]).since(search_since).until(search_until).limit(options["max_results"])
|
||||
elif options["search"] == "":
|
||||
notes_filter = Filter().kind(1).authors(userkeys).since(search_since).until(
|
||||
notes_filter = Filter().kind(Kind(1)).authors(userkeys).since(search_since).until(
|
||||
search_until).limit(options["max_results"])
|
||||
else:
|
||||
notes_filter = Filter().kind(1).authors(userkeys).search(options["search"]).since(
|
||||
notes_filter = Filter().kind(Kind(1)).authors(userkeys).search(options["search"]).since(
|
||||
search_since).until(search_until).limit(options["max_results"])
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user