bug fixes. added auto table
This commit is contained in:
@@ -46,6 +46,7 @@ def update_auto_customers():
|
||||
# get all automatic customers
|
||||
auto_customers = (session
|
||||
.query(Auto_Delivery)
|
||||
.filter(Auto_Delivery.last_fill != None)
|
||||
.order_by(Auto_Delivery.last_updated.desc())
|
||||
.limit(25))
|
||||
|
||||
@@ -53,6 +54,7 @@ def update_auto_customers():
|
||||
|
||||
# figure out days since last fill
|
||||
d1 = date.today()
|
||||
|
||||
d0 = f.last_fill
|
||||
|
||||
delta = d1 - d0
|
||||
|
||||
Reference in New Issue
Block a user