import items
This commit is contained in:
parent
e41942ea99
commit
823ae2a676
11 changed files with 181 additions and 36 deletions
|
|
@ -29,11 +29,10 @@ def api_pullChanges(app, remote_id, user_id=None, from_=None, to=None):
|
|||
|
||||
def api_pushChanges(app, user_id, changes):
|
||||
user = User.get(user_id)
|
||||
for change in changes:
|
||||
if not Changelog.apply_change(user, change):
|
||||
print 'FAILED TO APPLY CHANGE', change
|
||||
state.nodes.queue(user_id, 'pullChanges')
|
||||
return False
|
||||
if not Changelog.apply_changes(user, changes):
|
||||
print 'FAILED TO APPLY CHANGE'
|
||||
state.nodes.queue(user_id, 'pullChanges')
|
||||
return False
|
||||
return True
|
||||
|
||||
def api_requestPeering(app, user_id, username, message):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue