Skip to content

Commit

Permalink
chore: fix ruff error (UP032)
Browse files Browse the repository at this point in the history
  • Loading branch information
afuetterer committed Nov 19, 2023
1 parent 2f73433 commit 5db66ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions rdmo/projects/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,7 @@ def save_import_snapshot_values(project, snapshots, checked):

for value in snapshot.snapshot_values:
if value.attribute:
value_key = '{value.attribute.uri}[{snapshot_index}][{value.set_prefix}][{value.set_index}][{value.collection_index}]'.format( # noqa: E501
value=value,
snapshot_index=snapshot.snapshot_index
)
value_key = f"{value.attribute.uri}[{snapshot.snapshot_index}][{value.set_prefix}][{value.set_index}][{value.collection_index}]" # noqa: E501

if value_key in checked:
# assert that this is a new value
Expand Down

0 comments on commit 5db66ef

Please sign in to comment.