From be287c9a0b5161821c910e90e2bb7d1ef3c243c6 Mon Sep 17 00:00:00 2001 From: hasslesstech Date: Mon, 19 May 2025 20:36:14 +0300 Subject: [PATCH] hotfix: add missing fields when inserting pass --- backend/src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/main.py b/backend/src/main.py index 94f3ac8..952b3e6 100644 --- a/backend/src/main.py +++ b/backend/src/main.py @@ -33,8 +33,8 @@ class PassQueue: try: c.execute("BEGIN") - c.execute(f"INSERT INTO public.pass (uuid, movie_uuid, user_first, user_last, user_email, pass_type, pass_price)" - f"VALUES ('{uuid.uuid4().hex}', '{p.movie_uuid}', '{p.first}', '{p.last}', '{p.email}', {p.type}, {p.price})") + c.execute(f"INSERT INTO public.pass (uuid, movie_uuid, user_first, user_last, user_email, pass_type, pass_price, pass_requested_at, payment_received)" + f"VALUES ('{uuid.uuid4().hex}', '{p.movie_uuid}', '{p.first}', '{p.last}', '{p.email}', {p.type}, {p.price}, '{time.strftime('%Y-%m-%d %H:%M:%S')}', false)") c.execute("COMMIT") db.commit() except Exception as e: