Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
mrfakename
commited on
Commit
•
1f682f9
1
Parent(s):
3425a41
fix?
Browse files
app.py
CHANGED
@@ -142,6 +142,8 @@ def create_db():
|
|
142 |
upvote INTEGER,
|
143 |
downvote INTEGER
|
144 |
);
|
|
|
|
|
145 |
CREATE TABLE IF NOT EXISTS vote (
|
146 |
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
147 |
username TEXT,
|
@@ -149,6 +151,7 @@ def create_db():
|
|
149 |
vote INTEGER
|
150 |
);
|
151 |
''')
|
|
|
152 |
|
153 |
def get_data():
|
154 |
conn = get_db()
|
|
|
142 |
upvote INTEGER,
|
143 |
downvote INTEGER
|
144 |
);
|
145 |
+
''')
|
146 |
+
cursor.execute('''
|
147 |
CREATE TABLE IF NOT EXISTS vote (
|
148 |
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
149 |
username TEXT,
|
|
|
151 |
vote INTEGER
|
152 |
);
|
153 |
''')
|
154 |
+
cursor.commit()
|
155 |
|
156 |
def get_data():
|
157 |
conn = get_db()
|