]> apps.delaporte.us Git - matrix-shop-bot.git/blobdiff - matrix_shop_bot/db.py
Nicer formatting
[matrix-shop-bot.git] / matrix_shop_bot / db.py
index 6cacc33b5a92a86e0f44a8bcac02d11c8c5a8e5e..68728bbfff0500d3d667deba2693e32d5054bdc5 100644 (file)
@@ -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)