From: Edward Delaporte Date: Sun, 7 Jun 2026 00:42:18 +0000 (-0500) Subject: Fix case sensitive zone match X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-shop-bot.git/commitdiff_plain/f0c5c5f064c1e4eca6446e7c43b60d0c39f98a39?ds=inline Fix case sensitive zone match --- diff --git a/matrix_shop_bot/db.py b/matrix_shop_bot/db.py index 9d40236..59cab85 100644 --- a/matrix_shop_bot/db.py +++ b/matrix_shop_bot/db.py @@ -50,7 +50,7 @@ class PreferStore(SQLModel, table=True): store_id: int | None = Field(default=None, foreign_key="store.id", primary_key=True) def _get_item_zone(item_name, session) -> str: - zone = session.exec(select(ItemZone).where(ItemZone.name == item_name)).first() + zone = session.exec(select(ItemZone).where(func.lower(ItemZone.name) == func.lower(item_name))).first() if zone: return zone.zone return 'No Zone Assigned'