return ['Success']
def list_purchases(self, store_name):
+ '''List unique purchases at store in the past 90 days'''
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)