bug fixes. added auto table

This commit is contained in:
2024-12-28 15:53:59 -05:00
parent 4a2ec2418c
commit 8ad7329f78
4 changed files with 27 additions and 14 deletions

View File

@@ -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