From ad842ada4d6f48e505efbf2e65ffcedd2b534e14 Mon Sep 17 00:00:00 2001 From: Sijmen Schoon Date: Sun, 27 Nov 2016 00:07:40 +0000 Subject: [PATCH] Fix links not getting added to the database --- telematrix/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telematrix/__init__.py b/telematrix/__init__.py index 2410f76..640c353 100644 --- a/telematrix/__init__.py +++ b/telematrix/__init__.py @@ -173,8 +173,8 @@ async def matrix_transaction(request): tg_id = alias.split('_')[1].split(':')[0] link = db.ChatLink(event['room_id'], tg_id, True) db.session.add(link) + db.session.commit() - db.session.commit() continue link = db.session.query(db.ChatLink)\