]> apps.delaporte.us Git - matrix-shop-bot.git/blobdiff - matrix_shop_bot/db.py
Fixup
[matrix-shop-bot.git] / matrix_shop_bot / db.py
index 278d4a15b8e8b75bce37636a496af4efcd967975..ce0d46ec2681d31ca64dda6c68bc7ea356d1f3f5 100644 (file)
@@ -150,7 +150,7 @@ class Data():
 
     def list_purchases(self, store_name):
         with Session(self.engine) as session:
-            cmd = select(PurchaseRecord).where(PurchaseRecord.store == store_name)
+            cmd = select(PurchaseRecord).where(func.lower(PurchaseRecord.store) == func.lower(store_name))
             records = session.exec(cmd).all()
             return records