Skip to content

Commit

Permalink
[REF] cetmix_tower_server: replaced plain formatting with an f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro committed Jun 29, 2024
1 parent b659e22 commit f206b66
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cetmix_tower_server/models/cx_tower_key.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,7 @@ def _compute_key_ref_complete(self):
if rec.key_ref:
key_prefix = self._compose_key_prefix(rec.key_type)
if key_prefix:
rec.key_ref_complete = "#!cxtower.%(prefix)s.%(ref)s!#" % {
"prefix": key_prefix,
"ref": rec.key_ref,
}
rec.key_ref_complete = f"#!cxtower.{key_prefix}.{rec.key_ref}!#"
else:
rec.key_ref_complete = None
else:
Expand Down

0 comments on commit f206b66

Please sign in to comment.