MMOON commited on
Commit
39834d1
·
verified ·
1 Parent(s): 29ab83c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -91,7 +91,7 @@ class PesticideDataFetcher:
91
  if not response or "value" not in response:
92
  break
93
  all_products.extend(response["value"])
94
- next_link = response.get("@odata.nextLink")
95
  if next_link:
96
  url = next_link
97
  else:
@@ -164,7 +164,7 @@ class PesticideDataFetcher:
164
  "approval_date": item.get("approval_date"),
165
  "expiry_date": item.get("expiry_date")
166
  }
167
- next_link = response.get("@odata.nextLink")
168
  if next_link:
169
  url = next_link
170
  else:
 
91
  if not response or "value" not in response:
92
  break
93
  all_products.extend(response["value"])
94
+ next_link = response.get("nextLink")
95
  if next_link:
96
  url = next_link
97
  else:
 
164
  "approval_date": item.get("approval_date"),
165
  "expiry_date": item.get("expiry_date")
166
  }
167
+ next_link = response.get("nextLink")
168
  if next_link:
169
  url = next_link
170
  else: