small fixes

This commit is contained in:
2024-12-23 18:10:43 -05:00
parent 8569430468
commit 4a2ec2418c
4 changed files with 8 additions and 6 deletions

View File

@@ -78,7 +78,7 @@ def update_auto_customers():
elif 5.01 <= today_temptemp_avg <= 10:
use_day = 10
elif 0.01 <= today_temptemp_avg <= 5:
use_day =12
use_day = 12
elif -20 <= today_temptemp_avg <= -1:
use_day = 15
else:
@@ -98,7 +98,7 @@ def update_auto_customers():
f.estimated_gallons_left = get_gallons_left
f.last_updated = date.today()
session.add(create_new_update)
session.add(f)
session.commit()