Add clear all states function

This commit is contained in:
localhost_frssoft 2022-08-31 18:27:57 +03:00
parent 84870c9d7c
commit 4befd1872f

View File

@ -33,3 +33,9 @@ def remove_state(key):
conn.commit()
logger.warning(f'Удален стейт {key}')
def clear_all_states():
c.execute("DELETE FROM states")
conn.commit()
logger.warning(f'Все стейты удалены')