Skip to content

Commit

Permalink
fix: update of text work items
Browse files Browse the repository at this point in the history
  • Loading branch information
micha91 committed Sep 3, 2024
1 parent d847b95 commit 5af1719
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions capella2polarion/converters/text_work_item_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,13 @@ def generate_text_work_items(
if not (text_id := element.get("id")):
raise ValueError("All work items must have an ID in template")

if (
work_item_id_filter is None or text_id in work_item_id_filter
) and text_id in self.old_text_work_items:
work_item = self.old_text_work_items[text_id]
else:
if not (
(work_item := self.old_text_work_items.get(text_id))
and (
work_item_id_filter is None
or work_item.id in work_item_id_filter
)
):
work_item = polarion_api.WorkItem(
type=self.text_work_item_type,
title="",
Expand Down

0 comments on commit 5af1719

Please sign in to comment.