Skip to content

Commit

Permalink
fix: Attachment old checksum generation
Browse files Browse the repository at this point in the history
  • Loading branch information
ewuerger committed Aug 26, 2024
1 parent c7a5eb4 commit 224b339
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion capella2polarion/connectors/polarion_worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def compare_and_update_work_item(
"Update work item %r for model element %s %r...", *log_args
)

old_checksums = {"__C2P__WORK_ITEM": old.get_current_checksum() or ""}
if not (old_checksum := old.get_current_checksum() or ""):
old_checksum = '{"__C2P__WORK_ITEM": ""}'
old_checksums = json.loads(old_checksum)

new_checksum = new.get_current_checksum()
assert new_checksum is not None
new_checksums = json.loads(new_checksum)
Expand Down

0 comments on commit 224b339

Please sign in to comment.