Update advanced_search_wine.py

This commit is contained in:
Believethehype
2024-04-24 14:01:26 +02:00
parent 1ba23f9ac2
commit 49706498b0

View File

@@ -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']])