# Migrations

* adds missing migrations
* renames variables shadowing in-builts
This commit is contained in:
2024-08-26 18:51:58 +02:00
parent 5039da28aa
commit 33774ce557
4 changed files with 50 additions and 6 deletions

View File

@@ -55,11 +55,11 @@ class ParcelFetcher:
content = json.loads(response.content.decode("utf-8"))
except JSONDecodeError:
content = {}
next = content.get("next", None)
_next = content.get("next", None)
fetched_parcels = content.get("results", [])
self.results += fetched_parcels
if next:
self.get_parcels(next)
if _next:
self.get_parcels(_next)
return self.results