feat: Added edit profile func

This commit is contained in:
ITQ
2024-03-20 23:12:35 +03:00
parent 3ca80dea1f
commit 2d35f26b29
6 changed files with 197 additions and 7 deletions
+4
View File
@@ -73,6 +73,10 @@ class User(Base):
return normalized_value
@classmethod
def get_user_queryset_by_telegram_id(cls, telegram_id):
return session.query(cls).filter(cls.telegram_id == telegram_id)
@classmethod
def get_user_by_telegram_id(cls, telegram_id):
return (