small fixes
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user