Fix links not getting added to the database

This commit is contained in:
Sijmen Schoon 2016-11-27 00:07:40 +00:00
parent c705e8823c
commit ad842ada4d

View File

@ -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()
continue
link = db.session.query(db.ChatLink)\