mrfakename commited on
Commit
f95f048
1 Parent(s): cea913e

forgot to add a timestamp :)

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -62,13 +62,15 @@ def create_db_if_missing():
62
  id INTEGER PRIMARY KEY AUTOINCREMENT,
63
  username TEXT,
64
  model TEXT,
65
- vote INTEGER
 
66
  );
67
  ''')
68
  cursor.execute('''
69
  CREATE TABLE IF NOT EXISTS spokentext (
70
  id INTEGER PRIMARY KEY AUTOINCREMENT,
71
- spokentext TEXT
 
72
  );
73
  ''')
74
  def get_db():
 
62
  id INTEGER PRIMARY KEY AUTOINCREMENT,
63
  username TEXT,
64
  model TEXT,
65
+ vote INTEGER,
66
+ timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP
67
  );
68
  ''')
69
  cursor.execute('''
70
  CREATE TABLE IF NOT EXISTS spokentext (
71
  id INTEGER PRIMARY KEY AUTOINCREMENT,
72
+ spokentext TEXT,
73
+ timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP
74
  );
75
  ''')
76
  def get_db():