Skip to content

Commit

Permalink
Import script for Thurrock (2023-05-04) (closes #5614)
Browse files Browse the repository at this point in the history
  • Loading branch information
polling-bot-4000 committed Apr 19, 2023
1 parent 5cb0dbb commit 8374e68
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,10 @@
class Command(BaseXpressDemocracyClubCsvImporter):
council_id = "THR"
addresses_name = (
"2022-05-05/2022-03-23T16:02:05.092550/Democracy_Club__05May2022.tsv"
"2023-05-04/2023-04-19T13:00:54.850754/Democracy_Club__04May2023.tsv"
)
stations_name = (
"2022-05-05/2022-03-23T16:02:05.092550/Democracy_Club__05May2022.tsv"
"2023-05-04/2023-04-19T13:00:54.850754/Democracy_Club__04May2023.tsv"
)
elections = ["2022-05-05"]
elections = ["2023-05-04"]
csv_delimiter = "\t"

def address_record_to_dict(self, record):
if record.addressline6.strip() in [
"RM16 4RB",
"RM19 1QJ",
]:
return None # split

return super().address_record_to_dict(record)

0 comments on commit 8374e68

Please sign in to comment.