From 908c29cf935badb8bf8f2ff405e86e8dcdcd3419 Mon Sep 17 00:00:00 2001 From: Believethehype Date: Mon, 29 Jan 2024 18:25:24 +0100 Subject: [PATCH] Update advanced_search_wine.py --- nostr_dvm/tasks/advanced_search_wine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nostr_dvm/tasks/advanced_search_wine.py b/nostr_dvm/tasks/advanced_search_wine.py index 0b5a3ca..302b561 100644 --- a/nostr_dvm/tasks/advanced_search_wine.py +++ b/nostr_dvm/tasks/advanced_search_wine.py @@ -104,9 +104,9 @@ class AdvancedSearchWine(DVMTaskInterface): print("Sending job to Server") if options["users"]: - url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + '&pubkey=' + options["users"][0] + "&limit=100") + url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + '&pubkey=' + options["users"][0] + "&limit=100" + "&sort=time") else: - url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + "&limit=100") + url = ('https://api.nostr.wine/search?query=' + options["search"] + '&kind=1' + "&limit=100" + "&sort=time") headers = {'Content-type': 'application/x-www-form-urlencoded'} response = requests.get(url, headers=headers)