This commit is contained in:
Mateusz779 2023-04-19 12:13:06 +02:00
parent 32d044c721
commit d8e0791b88

2
db.py
View File

@ -17,7 +17,7 @@ def connect():
cur = conn.cursor() cur = conn.cursor()
with conn.cursor() as cur: with conn.cursor() as cur:
cur.execute("SET TIMEZONE='%s'",(config.timezone,)) cur.execute("SET TIMEZONE = %s",(config.timezone,))
conn.commit() conn.commit()
cur.execute(""" cur.execute("""
CREATE TABLE IF NOT EXISTS image ( CREATE TABLE IF NOT EXISTS image (