Skip to content

Commit

Permalink
lint fixes...
Browse files Browse the repository at this point in the history
  • Loading branch information
jmchilton committed Nov 7, 2024
1 parent c7adf48 commit 1783e52
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/galaxy/managers/markdown_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
from .markdown_parse import (
EMBED_DIRECTIVE_REGEX,
GALAXY_MARKDOWN_FUNCTION_CALL_LINE,
VALID_ARGUMENTS,
validate_galaxy_markdown,
)

Expand Down Expand Up @@ -97,7 +96,7 @@ def _remap(container, line):
if id_match := re.search(ENCODED_ID_PATTERN, line):
object_id = id_match.group(2)
decoded_id = trans.security.decode_id(object_id)
line = line.replace(id_match.group(), "{}={}".format(id_match.group(1), decoded_id))
line = line.replace(id_match.group(), f"{id_match.group(1)}={decoded_id}")
return (line, False)

def _remap_embed_container(match):
Expand All @@ -107,7 +106,7 @@ def _remap_embed_container(match):
if id_match := re.search(ENCODED_ID_PATTERN, whole_match):
object_id = id_match.group(2)
decoded_id = trans.security.decode_id(object_id)
whole_match = whole_match.replace(id_match.group(), "{}={:d}".format(id_match.group(1), decoded_id))
whole_match = whole_match.replace(id_match.group(), f"{id_match.group(1)}={decode_id}")

return whole_match

Expand Down

0 comments on commit 1783e52

Please sign in to comment.