From 82e07a9d637f718a27b5868ceecb18fde32a4f88 Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Fri, 8 Dec 2023 17:13:47 +0100 Subject: [PATCH] fix project info obtaining using updated mergin-client api --- dbsync.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/dbsync.py b/dbsync.py index 8472536..8fb7fd6 100644 --- a/dbsync.py +++ b/dbsync.py @@ -754,12 +754,11 @@ def pull(conn_cfg, mc): # Make sure that local project ID (if available) is the same as on the server _validate_local_project_id(mp, mc) - project_path = mp.metadata["name"] - local_version = mp.metadata["version"] + local_version = mp.version() try: - projects = mc.get_projects_by_names([project_path]) - server_version = projects[project_path]["version"] + projects = mc.get_projects_by_names([mp.project_full_name()]) + server_version = projects[mp.project_full_name()]["version"] except ClientError as e: # this could be e.g. DNS error raise DbSyncError("Mergin Maps client error: " + str(e))