不自动带入上次投票结果
This commit is contained in:
parent
b1f6013370
commit
d354a50554
10
src/dao.py
10
src/dao.py
|
@ -63,11 +63,11 @@ def get_user_menu() -> str:
|
||||||
row = cursor.fetchone()
|
row = cursor.fetchone()
|
||||||
if row:
|
if row:
|
||||||
return row[0]
|
return row[0]
|
||||||
else:
|
# else:
|
||||||
cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,))
|
# cursor.execute("select menu from user_menu where user = ? order by datestr desc limit 1", (user,))
|
||||||
row = cursor.fetchone()
|
# row = cursor.fetchone()
|
||||||
if row:
|
# if row:
|
||||||
return row[0]
|
# return row[0]
|
||||||
return ''
|
return ''
|
||||||
finally:
|
finally:
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
Loading…
Reference in New Issue