mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot
synced 2024-11-22 16:19:22 +02: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