Skip to content

Commit bde2bed

Browse files
authored
Follow-up fixes for 2026 data update (#370)
1 parent e9e6ef0 commit bde2bed

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

data-scripts/contentful.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ def process_import(filepath, space_id, content_type_id, api_key,
4747
entry.publish()
4848
except Exception:
4949
pass
50-
break
5150

52-
@rate_limited(78)
5351
def delete_entry(entry):
5452
if entry.is_published:
5553
entry.unpublish()
@@ -60,7 +58,7 @@ def process_fetch(space_id, content_type_id, api_key, environment_id='master'):
6058
"""Fetches all entries for a content type and returns them as a list of dicts"""
6159
client = Client(api_key)
6260
content_type = client.content_types(space_id, environment_id).find(content_type_id)
63-
entries = content_type.entries().all({'limit': 1000})
61+
entries = content_type.entries().all({'limit': 1000, 'sys.archivedAt[exists]': 'false'})
6462

6563
records = []
6664
for entry in entries:

src/views/ward-leader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
:registered-voters-party="leader.registeredVotersParty"
2424
:turnout-party-percent="turnoutPartyPercent"
2525
:division-count="wardBoundaries.features.length"
26-
:vacancy-count="vacancyCount"
26+
:vacancy-count="vacanciesCount"
2727
></stats-bar>
2828
</section>
2929

0 commit comments

Comments
 (0)