We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2820eab commit b70b814Copy full SHA for b70b814
gateway/handlers.py
@@ -534,9 +534,9 @@ def send(self):
534
535
@action()
536
def received(self):
537
- msgs = [msg.toDict() for x in self.session.query(Message).\
+ msgs = [msg.toDict() for msg in self.session.query(Message).\
538
filter_by(sent=False).filter(or_(Message.type == "job_message",
539
- Message.type == "outgoing_message")).all() if x.number != '']
+ Message.type == "outgoing_message")).all() if msg.number != '']
540
return Response(
541
content_type="application/json",
542
body=simplejson.dumps(msgs))
0 commit comments