Spaces:
Runtime error
Runtime error
da03
commited on
Commit
·
68b9a19
1
Parent(s):
801bf02
online_data_generation.py
CHANGED
@@ -90,7 +90,7 @@ def initialize_database():
|
|
90 |
# Initialize next_id if not exists
|
91 |
cursor.execute("SELECT value FROM config WHERE key = 'next_id'")
|
92 |
if not cursor.fetchone():
|
93 |
-
cursor.execute("INSERT INTO config (key, value) VALUES ('next_id', '
|
94 |
|
95 |
conn.commit()
|
96 |
conn.close()
|
|
|
90 |
# Initialize next_id if not exists
|
91 |
cursor.execute("SELECT value FROM config WHERE key = 'next_id'")
|
92 |
if not cursor.fetchone():
|
93 |
+
cursor.execute("INSERT INTO config (key, value) VALUES ('next_id', '0')")
|
94 |
|
95 |
conn.commit()
|
96 |
conn.close()
|