mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-02 18:53:10 +02:00
Update advanced_search_wine.py
This commit is contained in:
@@ -113,11 +113,10 @@ class AdvancedSearchWine(DVMTaskInterface):
|
|||||||
headers = {'Content-type': 'application/x-www-form-urlencoded'}
|
headers = {'Content-type': 'application/x-www-form-urlencoded'}
|
||||||
response = requests.get(url, headers=headers)
|
response = requests.get(url, headers=headers)
|
||||||
#print(response.text)
|
#print(response.text)
|
||||||
|
result_list = []
|
||||||
try:
|
try:
|
||||||
ob = json.loads(response.text)
|
ob = json.loads(response.text)
|
||||||
data = ob['data']
|
data = ob['data']
|
||||||
result_list = []
|
|
||||||
for el in data:
|
for el in data:
|
||||||
try:
|
try:
|
||||||
e_tag = Tag.parse(["e", el['id']])
|
e_tag = Tag.parse(["e", el['id']])
|
||||||
|
Reference in New Issue
Block a user