mirror of
https://gitea.phreedom.club/localhost_frssoft/FMN_bot.git
synced 2024-11-23 13:43:01 +00:00
Add clear all states function
This commit is contained in:
parent
84870c9d7c
commit
4befd1872f
@ -33,3 +33,9 @@ def remove_state(key):
|
|||||||
conn.commit()
|
conn.commit()
|
||||||
logger.warning(f'Удален стейт {key}')
|
logger.warning(f'Удален стейт {key}')
|
||||||
|
|
||||||
|
|
||||||
|
def clear_all_states():
|
||||||
|
c.execute("DELETE FROM states")
|
||||||
|
conn.commit()
|
||||||
|
logger.warning(f'Все стейты удалены')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user