From 6d2c1ec7f577b713bb68eed8dac697b3d9e66294 Mon Sep 17 00:00:00 2001 From: Travis Abendshien <46939827+CyanVoxel@users.noreply.github.com> Date: Fri, 10 Jan 2025 08:21:10 -0800 Subject: [PATCH] fix: change typo of `tag.id` to `tag_id` Co-authored-by: Jann Stute <46534683+Computerdores@users.noreply.github.com> --- tagstudio/src/qt/widgets/preview/field_containers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tagstudio/src/qt/widgets/preview/field_containers.py b/tagstudio/src/qt/widgets/preview/field_containers.py index bb8b24ed..ae779d62 100644 --- a/tagstudio/src/qt/widgets/preview/field_containers.py +++ b/tagstudio/src/qt/widgets/preview/field_containers.py @@ -171,8 +171,8 @@ class FieldContainers(QWidget): if cluster_map.get(p_id) is None: cluster_map[p_id] = set() # If the p_tag has p_tags of its own, recursively link those to the original Tag. - if tag.id not in cluster_map[p_id]: - cluster_map[p_id].add(tag.id) + if tag_id not in cluster_map[p_id]: + cluster_map[p_id].add(tag_id) p_tag = self.lib.get_tag(p_id) # Get full object if p_tag.parent_ids: add_to_cluster(