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