diff options
Diffstat (limited to 'dbstore/peewee_store.py')
-rw-r--r-- | dbstore/peewee_store.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dbstore/peewee_store.py b/dbstore/peewee_store.py index 2f637bf..f10627b 100644 --- a/dbstore/peewee_store.py +++ b/dbstore/peewee_store.py | |||
@@ -51,6 +51,11 @@ def get_user_access_key(telegram_user_id: str) -> str: | |||
51 | return "" | 51 | return "" |
52 | 52 | ||
53 | 53 | ||
54 | def delete_user_by_id(telegram_user_id: str) -> int: | ||
55 | with db.connection_context(): | ||
56 | return User.delete().where(User.telegram_user_id == telegram_user_id).execute() | ||
57 | |||
58 | |||
54 | def get_user_home_instance(telegram_user_id: str) -> dict: | 59 | def get_user_home_instance(telegram_user_id: str) -> dict: |
55 | with db.connection_context(): | 60 | with db.connection_context(): |
56 | try: | 61 | try: |