Compare commits

...

2 Commits

2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1 +1,2 @@
**/*.env
**/demos

View File

@ -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: