with Session(self.engine) as session:
recent = dt.now() - timedelta(days=90)
cmd = select(PurchaseRecord).where(func.lower(PurchaseRecord.store) == func.lower(store_name)).where(PurchaseRecord.purchase_date > recent)
with Session(self.engine) as session:
recent = dt.now() - timedelta(days=90)
cmd = select(PurchaseRecord).where(func.lower(PurchaseRecord.store) == func.lower(store_name)).where(PurchaseRecord.purchase_date > recent)