X-Git-Url: https://apps.delaporte.us/gitweb/matrix-shop-bot.git/blobdiff_plain/b0d59de8e794c84f2089515e3adf3a68703c96b8..d278618562c1975ffe4bd081b76124d183d6b637:/matrix_shop_bot/db.py diff --git a/matrix_shop_bot/db.py b/matrix_shop_bot/db.py index 6cacc33..68728bb 100644 --- a/matrix_shop_bot/db.py +++ b/matrix_shop_bot/db.py @@ -191,6 +191,7 @@ class Data(): 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)