From db257f8c0c599c1fb643498b86998c007f13cb3b Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Wed, 17 Jan 2024 10:41:08 +0000 Subject: [PATCH] Change archon to archon_code --- app/records/schemas/details.py | 2 +- app/sources/rosetta/api.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/records/schemas/details.py b/app/records/schemas/details.py index ec59490..ec89f4b 100644 --- a/app/records/schemas/details.py +++ b/app/records/schemas/details.py @@ -60,7 +60,7 @@ def __init__(self, id: str): class RecordArchive(Details): type: str = "archive" name: str = "" - archon: str = "" + archon_code: str = "" opening_times: str = "" disabled_access: str = "" information: str = "" diff --git a/app/sources/rosetta/api.py b/app/sources/rosetta/api.py index 6c18948..5e90b04 100644 --- a/app/sources/rosetta/api.py +++ b/app/sources/rosetta/api.py @@ -106,7 +106,7 @@ def parse_results(self, raw_results, source_url): ): record = RecordArchive(parsed_data.id()) record.name = parsed_data.title() - record.archon = parsed_data.reference_number() + record.archon_code = parsed_data.reference_number() record.opening_times = parsed_data.place_opening_times() record.disabled_access = parsed_data.place_disabled_access() record.information = parsed_data.place_comments()