mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-23 13:43:01 +00:00
added reset poll function
This commit is contained in:
parent
9708d36e5d
commit
25bf04fe5a
@ -85,3 +85,9 @@ def rewrite_db(winned_movies=list):
|
|||||||
c.executemany("INSERT OR IGNORE INTO poll(user_suggested, original_name, ru_name, year, votes) VALUES (?, ?, ?, ?, ?)",
|
c.executemany("INSERT OR IGNORE INTO poll(user_suggested, original_name, ru_name, year, votes) VALUES (?, ?, ?, ?, ?)",
|
||||||
(winned_movies))
|
(winned_movies))
|
||||||
conn.commit()
|
conn.commit()
|
||||||
|
|
||||||
|
def reset_poll():
|
||||||
|
'''Сброс содержимого предложки-опроса'''
|
||||||
|
c.execute("DELETE FROM poll")
|
||||||
|
conn.commit()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user