Fix board sync errors
Change-Id: I8e98bcab1732a7dc9723dcd6c5eb503f80d267ae
This commit is contained in:
parent
ba407b3549
commit
2acb142109
@ -701,7 +701,7 @@ class SyncBoardTask(Task):
|
||||
position=remote_lane['position'],
|
||||
created=remote_created)
|
||||
else:
|
||||
lane = session.getLane(remote_lane['id'])
|
||||
lane = session.getLaneByID(remote_lane['id'])
|
||||
lane.updated = parseDateTime(remote_lane['updated_at'])
|
||||
t = SyncWorklistTask(remote_lane['worklist']['id'],
|
||||
priority=self.priority)
|
||||
@ -794,7 +794,7 @@ class SyncWorklistTask(Task):
|
||||
|
||||
for local_item in worklist.items[:]:
|
||||
if local_item.id not in remote_item_ids:
|
||||
session.delete(item)
|
||||
session.delete(local_item)
|
||||
|
||||
def run(self, sync):
|
||||
app = sync.app
|
||||
|
Loading…
Reference in New Issue
Block a user