Commit graph

1201 commits

Author SHA1 Message Date
Daniel Roth
68c3a20d0a typehint correction 2026-02-16 12:04:49 +00:00
Daniel Roth
b99fb686dd only write to db if is_default value has changed 2026-02-16 11:59:03 +00:00
Daniel Roth
3349edda89 initial definition of trigger request object 2026-02-16 10:03:07 +00:00
Daniel Roth
53cfd9ee8c start setting up lambda deployment code 2026-02-16 09:57:00 +00:00
Daniel Roth
e6c0feaf1c remove unused import 2026-02-16 09:12:55 +00:00
Daniel Roth
bd9e553e35 bulk update of plans 2026-02-13 14:50:48 +00:00
Daniel Roth
8e5016978e Merge branch 'main' into feature/automate-categorisation-of-works 2026-02-13 13:44:27 +00:00
Daniel Roth
16386173af get update_plan working 2026-02-13 13:39:38 +00:00
Khalim Conn-Kowlessar
7237ad5a79 bug fixed for 0 target gain where infinity was being selected 2026-02-13 12:40:07 +00:00
Daniel Roth
e0e50d696a fixes so it runs (as far as the database update), plus some temp prints 2026-02-13 12:26:31 +00:00
Daniel Roth
561594a6ca consistent use of Tuple 2026-02-13 09:45:15 +00:00
Daniel Roth
61d9e64e1b also update scenario when updating plan 2026-02-13 09:44:35 +00:00
Daniel Roth
f34a6269f7 Move updating of is_default to domain rather than database layer 2026-02-13 09:39:25 +00:00
Daniel Roth
4b07310d6b define database methods 2026-02-12 17:36:47 +00:00
Daniel Roth
857d7e3da1 Check whether plan with EPC goal is compliant 🟪 2026-02-12 16:10:11 +00:00
Daniel Roth
bf0fce8ca5 Check whether plan with EPC goal is compliant (and change goal_value back to required)🟩 2026-02-12 16:08:37 +00:00
Daniel Roth
080000123f cater for goal_value being NULL 🟥 2026-02-12 15:40:03 +00:00
Daniel Roth
70fd417c4a Check whether plan with EPC goal is compliant 🟥 2026-02-12 15:04:02 +00:00
Daniel Roth
f955184260 refactor processor 2026-02-12 14:25:35 +00:00
Daniel Roth
4ddb5592f3 give classes immutable records to protect udpating 2026-02-12 12:58:44 +00:00
Daniel Roth
a0515ea3bb correct import path following move of domain 2026-02-12 12:45:17 +00:00
Daniel Roth
80cd44c97a move domain into app directory 2026-02-12 12:44:42 +00:00
Daniel Roth
c31ad577a6 define class methods to construct domain classes from sqlalchemy models 2026-02-12 12:44:18 +00:00
Daniel Roth
7c88e22424 Define Plan and Scenario domain classes 2026-02-12 12:31:37 +00:00
Daniel Roth
b3fa7c3051 rename Plan and Scenario to PlanModel and ScenarioModel 2026-02-12 12:01:39 +00:00
Daniel Roth
73607a5117 sqlalchemy 2.0 typing in scenario 2026-02-12 11:08:35 +00:00
Daniel Roth
e7f941d5e4 use sqlalchemy 2.0 typing in recommendations , and write processing logic 2026-02-12 10:00:47 +00:00
Daniel Roth
598a612b40 define db methods 2026-02-12 09:23:47 +00:00
Daniel Roth
e0857ab7a2 Merge branch 'main' into feature/automate-categorisation-of-works 2026-02-11 17:23:04 +00:00
Daniel Roth
9faba4af42 set up postgres class 2026-02-11 17:22:00 +00:00
Khalim Conn-Kowlessar
866166c022 handle typing error for addreses class 2026-02-11 12:41:37 +00:00
Daniel Roth
c67e4644e4 define processor and local runner 2026-02-10 18:11:50 +00:00
Daniel Roth
b2f1190066 create categorisation directory 2026-02-10 17:45:49 +00:00
Khalim Conn-Kowlessar
ea239db2b7 changing ref to backend 2026-02-10 14:39:25 +00:00
Khalim Conn-Kowlessar
abc300b406 merged 2026-02-10 14:31:28 +00:00
Khalim Conn-Kowlessar
50256d4cff Merge branch 'main' of https://github.com/Hestia-Homes/Model into debugging-ara-runs 2026-02-10 14:31:19 +00:00
Daniel Roth
ab442cfd88
Merge pull request #698 from Hestia-Homes/deploy-condition-processor
Deploy condition processor
2026-02-10 14:30:59 +00:00
Daniel Roth
549eef19db remove token from dockerfile, and add example json payloads 2026-02-10 11:13:31 +00:00
Daniel Roth
df6c42933a do the database write 2026-02-10 09:59:23 +00:00
Daniel Roth
da34b99251 tidy up logs further 2026-02-10 09:43:55 +00:00
Daniel Roth
d4b444f49b Fix bad log 2026-02-10 09:43:18 +00:00
Daniel Roth
d0847681c1 tidy up logs 2026-02-10 09:42:29 +00:00
Daniel Roth
06539a787d use streaming mode in openpyxl for peabody parser 2026-02-10 09:30:39 +00:00
Daniel Roth
c0534d9546 more logs 2026-02-10 09:16:52 +00:00
Daniel Roth
b026a7ae9e log db session but dont write to db 2026-02-10 09:02:44 +00:00
Khalim Conn-Kowlessar
35ed1491fe handling 'unknown' fuel type 2026-02-09 18:04:09 +00:00
Daniel Roth
cd0ae37d40 more logging 2026-02-09 17:18:45 +00:00
Daniel Roth
9b6f99929e add logging 2026-02-09 17:00:59 +00:00
Khalim Conn-Kowlessar
294c12fe4c handling env permissions for local vs test environments and debugging handling of primary roof 2026-02-09 16:30:40 +00:00
Daniel Roth
68b12c7344 trigger rebuild and deploy 2026-02-09 12:49:32 +00:00