Compare commits

...

3 commits

Author SHA1 Message Date
fc8195b15f Change to 60m 2024-10-27 12:27:53 -07:00
702161e1de Merge remote-tracking branch 'origin/main' into quieter-restoration-time 2024-10-27 12:27:23 -07:00
13e08bb890 Only count estimated restoration as different if they're 30+m apart ()
Initial attempt at solving .

Currently setting to 30m, can adjust if needed.

Reviewed-on: 
2024-10-27 10:54:56 -07:00

4
scl.py
View file

@ -336,8 +336,8 @@ with Session(engine) as session:
)
/ 60
)
# Only post if estimated restoration time has changed by 30m or more
if est_restoration_diff_mins >= 30:
# Only post if estimated restoration time has changed by 60m or more
if est_restoration_diff_mins >= 60:
existing_record.estimated_restoration_time = estimated_restoration_time
if estimated_restoration_time > datetime.now():
# New estimated restoration time is in the future, so likely to be a real time