rename get_user method to find_user

This commit is contained in:
mitsuha_s 2022-05-28 20:55:48 +00:00
parent baa215334f
commit a5422cab39
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class Database():
self.conn.commit()
return self.cur.lastrowid
def get_user(self, telegram_id: str) -> int | None:
def find_user(self, telegram_id: str) -> int | None:
self.cur.execute('SELECT id FROM users WHERE telegram_id = :telegram_id', {'telegram_id': telegram_id})
user_id = self.cur.fetchone()
if user_id is None: