made localcommand pep8 compliant
This commit is contained in:
parent
782c980b69
commit
9fc741106a
9 changed files with 34 additions and 28 deletions
|
@ -55,10 +55,11 @@ def sendto():
|
|||
msg = ''
|
||||
else:
|
||||
msg = json.dumps(msg)
|
||||
localcommand.local_command('/chat/addrec/%s' % (g.peer,), post=True, postData=msg)
|
||||
localcommand.local_command('/chat/addrec/%s' % (g.peer,), post=True, post_data=msg)
|
||||
return Response('success')
|
||||
|
||||
@direct_blueprint.route('/chat/poll')
|
||||
def poll_chat():
|
||||
"""Endpoints peers get new messages from"""
|
||||
return Response(localcommand.local_command('/chat/gets/%s' % (g.peer,)))
|
||||
return Response(localcommand.local_command('/chat/gets/%s' % (g.peer,)))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue