send aggregated changes
This commit is contained in:
parent
cb4ba86bac
commit
40a7d478de
5 changed files with 178 additions and 10 deletions
|
|
@ -23,6 +23,8 @@ def api_pullChanges(remote_id, user_id=None, from_=None, to=None):
|
|||
from_ = from_ or 0
|
||||
if user_id:
|
||||
return []
|
||||
return Changelog.aggregated_changes(from_)
|
||||
'''
|
||||
if not user_id:
|
||||
user_id = settings.USER_ID
|
||||
qs = Changelog.query.filter_by(user_id=user_id)
|
||||
|
|
@ -32,6 +34,7 @@ def api_pullChanges(remote_id, user_id=None, from_=None, to=None):
|
|||
qs = qs.filter(Changelog.revision<to)
|
||||
state.nodes.queue('add', remote_id)
|
||||
return [c.json() for c in qs]
|
||||
'''
|
||||
|
||||
def api_pushChanges(user_id, changes):
|
||||
logger.debug('pushChanges no longer used, ignored')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue