From 6b7e9f7ec3fc2079028353cc9deb6554ee0f8c45 Mon Sep 17 00:00:00 2001 From: Johan Marcusson Date: Mon, 28 Oct 2024 11:22:31 +0100 Subject: [PATCH] fix syntax --- src/cnaas_nms/db/git_worktrees.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cnaas_nms/db/git_worktrees.py b/src/cnaas_nms/db/git_worktrees.py index 1c2dcc14..cc219310 100644 --- a/src/cnaas_nms/db/git_worktrees.py +++ b/src/cnaas_nms/db/git_worktrees.py @@ -36,7 +36,7 @@ def refresh_existing_templates_worktrees(by: str, job_id: int, group_settings: d # find all devices that are using these branches and mark them as unsynchronized updated_hostnames: List[str] = [] with sqla_session() as session: - for hostname, primary_group in device_primary_groups: + for hostname, primary_group in device_primary_groups.items(): if hostname in updated_hostnames: continue if primary_group in updated_groups: