diff --git a/data-scripts/contentful.py b/data-scripts/contentful.py index 346d3c6b..1060cff5 100644 --- a/data-scripts/contentful.py +++ b/data-scripts/contentful.py @@ -47,9 +47,7 @@ def process_import(filepath, space_id, content_type_id, api_key, entry.publish() except Exception: pass - break -@rate_limited(78) def delete_entry(entry): if entry.is_published: entry.unpublish() @@ -60,7 +58,7 @@ def process_fetch(space_id, content_type_id, api_key, environment_id='master'): """Fetches all entries for a content type and returns them as a list of dicts""" client = Client(api_key) content_type = client.content_types(space_id, environment_id).find(content_type_id) - entries = content_type.entries().all({'limit': 1000}) + entries = content_type.entries().all({'limit': 1000, 'sys.archivedAt[exists]': 'false'}) records = [] for entry in entries: diff --git a/src/views/ward-leader.vue b/src/views/ward-leader.vue index 67fb13bf..f6f45c7b 100644 --- a/src/views/ward-leader.vue +++ b/src/views/ward-leader.vue @@ -23,7 +23,7 @@ :registered-voters-party="leader.registeredVotersParty" :turnout-party-percent="turnoutPartyPercent" :division-count="wardBoundaries.features.length" - :vacancy-count="vacancyCount" + :vacancy-count="vacanciesCount" >