From 5db66ef6a99b91d8f0d468ec5e80805b8ab46b33 Mon Sep 17 00:00:00 2001 From: Heinz-Alexander Fuetterer Date: Sun, 19 Nov 2023 14:00:28 +0100 Subject: [PATCH] chore: fix ruff error (UP032) --- rdmo/projects/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rdmo/projects/utils.py b/rdmo/projects/utils.py index 94b57e0793..d20e641b99 100644 --- a/rdmo/projects/utils.py +++ b/rdmo/projects/utils.py @@ -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