Skip to content

Commit 57e854b

Browse files
committed
get rid of project info from editor
1 parent e54bde8 commit 57e854b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mergin/client.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,10 +1524,12 @@ def sync_project(self, project_directory, progress_callback=None):
15241524
while push_project_is_running(job):
15251525
sleep(SYNC_CALLBACK_WAIT)
15261526
current_size = job.transferred_size
1527-
progress_callback(current_size - last_size, job) # call callback with transferred size increment
1527+
progress_callback(
1528+
current_size - last_size, job
1529+
) # call callback with transferred size increment
15281530
last_size = current_size
15291531
push_project_finalize(job)
1530-
_, has_changes = get_push_changes_batch(self, mp, job.server_resp)
1532+
_, has_changes = get_push_changes_batch(self, mp)
15311533
except ClientError as e:
15321534
if e.is_retryable_sync() and server_conflict_attempts < PUSH_ATTEMPTS - 1:
15331535
# retry on conflict, e.g. when server has changes that we do not have yet

0 commit comments

Comments
 (0)