From b3f788f307a950be3000037eba1ab81aa742809f Mon Sep 17 00:00:00 2001 From: burzuf Date: Sun, 22 Mar 2020 17:25:00 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20ID=20Telegram?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- db_routing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_routing.py b/db_routing.py index fd038fc..b436cad 100644 --- a/db_routing.py +++ b/db_routing.py @@ -129,5 +129,5 @@ def delete_scenario(scenario_id): def tg_id_update(current_user_id, new_tg_username): current_user = User.query.filter_by(id=current_user_id).first() - current_user.tg_username = new_tg_username + current_user.tg_id = new_tg_username db.session.commit()