From 502e4724fc6bd9bb2adc91c52a4443309f2bccf6 Mon Sep 17 00:00:00 2001 From: Roman Mutel Date: Mon, 13 May 2024 12:49:46 +0300 Subject: [PATCH] post debugging cleanup --- check-ins/check_ins_service.py | 1 - coffee-packs/utils.py | 1 - coffee-shops/persistence.py | 2 -- 3 files changed, 4 deletions(-) diff --git a/check-ins/check_ins_service.py b/check-ins/check_ins_service.py index 5568231..2efebf3 100644 --- a/check-ins/check_ins_service.py +++ b/check-ins/check_ins_service.py @@ -22,5 +22,4 @@ def post_check_ins(check_in: dict, session_id: str): raise HTTPException(status_code=403, detail="Only users can leave check-ins") check_in["user_id"] = int(user_id) - print(check_in) return conn.post_check_in(check_in) diff --git a/coffee-packs/utils.py b/coffee-packs/utils.py index 0716fe1..e9c97f0 100644 --- a/coffee-packs/utils.py +++ b/coffee-packs/utils.py @@ -8,7 +8,6 @@ HTTP_PREFIX = "http://" -# enum with two user types: "user" and "shop" class UserType: USER = "user" SHOP = "shop" diff --git a/coffee-shops/persistence.py b/coffee-shops/persistence.py index 4b14167..58a057e 100644 --- a/coffee-shops/persistence.py +++ b/coffee-shops/persistence.py @@ -49,7 +49,6 @@ def insert_coffee_shop(self, shop: dict): return shop_id def update_coffee_shop(self, id: int, shop: dict): - print(shop) query = sql.SQL("UPDATE coffee_shops SET {} WHERE id = %s").format( sql.SQL(', ').join( sql.SQL("{} = %s").format(sql.Identifier(k)) @@ -77,7 +76,6 @@ def add_menu_item(self, id: int, item: dict): ) values = [item_id, id] values.extend(item.values()) - print(values) cursor = self.conn.cursor() cursor.execute(query, values) self.conn.commit()