mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-27 07:33: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 (?, ?, ?, ?, ?)",
|
||||
(winned_movies))
|
||||
conn.commit()
|
||||
|
||||
def reset_poll():
|
||||
'''Сброс содержимого предложки-опроса'''
|
||||
c.execute("DELETE FROM poll")
|
||||
conn.commit()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user