Merge pull request #137 from Hestia-Homes/feautre/fix_month_end
Some checks failed
Lambda Main Workflow / shared-lambda-terraform (push) Has been cancelled
Run Database Migration on Production (aws-dev) / db_migration (push) Has been cancelled
Lambda Main Workflow / lambda-ecr-example (push) Has been cancelled
Lambda Main Workflow / extractor-and-loader (push) Has been cancelled
Lambda Main Workflow / walthamforest-etl (push) Has been cancelled

month end automation complete
This commit is contained in:
Jun-te Kim 2026-04-23 16:50:45 +01:00 committed by GitHub
commit 4b5565c033
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,7 @@ class BoardID(Enum):
_9929454382 = "NCHA SHDF Wave 3 Main Operation Board"
_18232420839 = "Powys County Council"
_18380751311 = "Devon County Council"
_18397425376 = "CRG"
board_ids = [
@ -36,6 +37,7 @@ board_ids = [
"9929454382", # NCHA SHDF Wave 3 Main Operation Board
"18232420839", # Powys County Council:
"18380751311", # Devon County Council
"", # CRG
]
empty = "Rate card info missing"
@ -212,6 +214,23 @@ rate_card_data_seddon = {
rate_cards.update({"9671463094": pd.DataFrame(rate_card_data_seddon)})
rate_card_data_seddon = {
"job_type": [
"RA", "ATT", "Coordination Stage 1 v1", "Coordination Stage 1 v2 remodel", "Coordination Stage 1 v3 remodel",
"Design Archetype Complex", "Design Archetype Simple", "Design Repetitive Simple","Design Repetitive Complex", "Coordination Stage 2", "Lodgement", "Full lodgement phase 2",
"Post EPR", "Post EPC", "Post ATT", "retrofit evaluation",
"RA no show", "ATT no show", "post EPC no show", "Full cost MTP", "measure modelling", "design type not specified"
],
"rate": [
empty, empty, empty, empty, empty,
empty, empty, empty, empty, empty,
empty, empty , empty, empty, empty,
empty, empty, empty, empty, empty, empty,empty
]
}
rate_cards.update({"18397425376": pd.DataFrame(rate_card_data_seddon)})
board_to_record = {}
for board in tqdm(board_ids):