mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-12-23 05:53:32 +02:00
added reset poll function
This commit is contained in:
parent
9708d36e5d
commit
25bf04fe5a
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue