mirror of
https://github.com/Hestia-Homes/survey-extraction.git
synced 2026-06-08 11:17:29 +00:00
sharepoint version
This commit is contained in:
parent
5a97b05c47
commit
4e6181e413
2 changed files with 6 additions and 6 deletions
|
|
@ -710,8 +710,8 @@ class QuidosSiteNotesExtractor(SiteNotesExtractor):
|
|||
model_name=dict_.get("model_name", ""),
|
||||
model_qualifer=dict_.get("model_qualifier", ""),
|
||||
controls=HeatingSystemControls(
|
||||
control_type=dict_.get("control_type", ""),
|
||||
flue_type=dict_.get("flue_type",""),
|
||||
control_type=dict_.get("control_type", "") if dict_.get("control_type", "") is not None else "",
|
||||
flue_type=dict_.get("flue_type","") if dict_.get("flue_type", "") is not None else "",
|
||||
fan_assisted_flue=True if dict_.get("fan_assisted_flue", "NO").upper() == "YES" else False,
|
||||
heat_emitter_type=dict_.get("heat_emitter_type", "") if dict_.get("heat_emitter_type") is not None else "",
|
||||
electricity_meter_type=dict_.get("electricity_meter_type", ""),
|
||||
|
|
@ -751,11 +751,11 @@ class QuidosSiteNotesExtractor(SiteNotesExtractor):
|
|||
model_name=dict_.get("model_name", ""),
|
||||
model_qualifer=dict_.get("model_qualifier", ""),
|
||||
controls=HeatingSystemControls(
|
||||
control_type=dict_.get("control_type", ""),
|
||||
flue_type=dict_.get("flue_type",""),
|
||||
control_type=dict_.get("control_type", "") if dict_.get("control_type", "") is not None else "",
|
||||
flue_type=dict_.get("flue_type","") if dict_.get("flue_type", "") is not None else "",
|
||||
fan_assisted_flue=True if dict_.get("fan_assisted_flue", "NO").upper() == "YES" else False,
|
||||
heat_emitter_type=dict_.get("heat_emitter_type", "") if dict_.get("heat_emitter_type") is not None else "",
|
||||
electricity_meter_type=dict_.get("electricity_meter_type", ""),
|
||||
electricity_meter_type=dict_.get("electricity_meter_type", "") if dict_.get("electricity_meter_type", "") is not None else "",
|
||||
mains_gas_available=True if dict_.get("mains_gas_available", "NO").upper() == "YES" else False,
|
||||
)
|
||||
)
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ from datetime import datetime, timedelta
|
|||
def previous_monday():
|
||||
today = datetime.today()
|
||||
last_monday = today - timedelta(days=today.weekday() + 7) # Go back to last week's Monday
|
||||
# return "W.C. 03.03.2025" # Quick one off script for nic. Hopefully get 199 Do not merge!!!!
|
||||
return "W.C. 03.03.2025" # Quick one off script for nic. Hopefully get 199 Do not merge!!!!
|
||||
return f"W.C. {last_monday.strftime('%d.%m.%Y')}"
|
||||
|
||||
WEEK_COMMENCING = os.getenv("WEEK_COMMENCING", previous_monday())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue