Skip to content

Commit

Permalink
post debugging cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
rwmutel committed May 13, 2024
1 parent bd00e34 commit 502e472
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion check-ins/check_ins_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
1 change: 0 additions & 1 deletion coffee-packs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
HTTP_PREFIX = "http://"


# enum with two user types: "user" and "shop"
class UserType:
USER = "user"
SHOP = "shop"
Expand Down
2 changes: 0 additions & 2 deletions coffee-shops/persistence.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 502e472

Please sign in to comment.