From d268cb01d57657eee9318d8c0e2d96e6f9eddcc6 Mon Sep 17 00:00:00 2001 From: Mabe Date: Thu, 24 Sep 2026 19:33:43 -0700 Subject: [PATCH] Add check_clothe function to verify clothing existence in the database --- db.py | 1 + 1 file changed, 1 insertion(+) diff --git a/db.py b/db.py index f698198..dca875d 100644 --- a/db.py +++ b/db.py @@ -95,6 +95,7 @@ def fetch_all_pieces(): result = session.query(Items.pieces).all() return [row[0] for row in session.query(Items.pieces).all()] +#Checks if clothe is in db def check_clothe(clothe_type): exists = session.query(Items.clothes).filter_by(clothes=clothe_type).first() is not None return exists