From a5422cab393e281c6d0cdb038b1473e338bdd860 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Sat, 28 May 2022 20:55:48 +0000 Subject: [PATCH] rename get_user method to find_user --- database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database.py b/database.py index 0003754..f10687f 100644 --- a/database.py +++ b/database.py @@ -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: