mrfakename commited on
Commit
9ae8c4d
1 Parent(s): 8ae6da1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -377,7 +377,7 @@ def a_is_better(model1, model2, userid):
377
  if model1 and model2:
378
  conn = get_db()
379
  cursor = conn.cursor()
380
- cursor.execute('INSERT INTO votelog (username, chosen, rejected) VALUES (?, ?, ?)', (userid, model1, model2,))
381
  with scheduler.lock:
382
  conn.commit()
383
  cursor.close()
@@ -389,7 +389,7 @@ def b_is_better(model1, model2, userid):
389
  if model1 and model2:
390
  conn = get_db()
391
  cursor = conn.cursor()
392
- cursor.execute('INSERT INTO votelog (username, chosen, rejected) VALUES (?, ?, ?)', (userid, model2, model1,))
393
  with scheduler.lock:
394
  conn.commit()
395
  cursor.close()
 
377
  if model1 and model2:
378
  conn = get_db()
379
  cursor = conn.cursor()
380
+ cursor.execute('INSERT INTO votelog (username, chosen, rejected) VALUES (?, ?, ?)', (str(userid), model1, model2,))
381
  with scheduler.lock:
382
  conn.commit()
383
  cursor.close()
 
389
  if model1 and model2:
390
  conn = get_db()
391
  cursor = conn.cursor()
392
+ cursor.execute('INSERT INTO votelog (username, chosen, rejected) VALUES (?, ?, ?)', (str(userid), model2, model1,))
393
  with scheduler.lock:
394
  conn.commit()
395
  cursor.close()