fix return of query object
This commit is contained in:
parent
9f94898102
commit
f313b2159f
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,7 @@ def on_receive_events(transaction):
|
||||||
events = request.get_json()["events"]
|
events = request.get_json()["events"]
|
||||||
for event in events:
|
for event in events:
|
||||||
logging.debug(event)
|
logging.debug(event)
|
||||||
user = MatrixUser.query.filter_by(matrix_id=event["user_id"])
|
user = MatrixUser.query.filter_by(matrix_id=event["user_id"]).first()
|
||||||
|
|
||||||
if (event['type'] == 'm.room.message'
|
if (event['type'] == 'm.room.message'
|
||||||
and not app.config['MATRIX_PNUT_PREFIX'] in event["user_id"]
|
and not app.config['MATRIX_PNUT_PREFIX'] in event["user_id"]
|
||||||
|
|
Loading…
Reference in a new issue