Skip to content

Commit

Permalink
Fixed: format argument for saved tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mnot committed Dec 11, 2023
1 parent f1e4d6d commit e542a8b
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions redbot/formatter/html_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,12 +263,14 @@ def redbot_link(
"""
uri = self.resource.request.uri
args: List[Tuple[str, str]] = []
if check_name:
args.append(("check_name", check_name))
elif self.resource.check_name is not None:
args.append(("check_name", self.resource.check_name))
if res_format:
args.append(("format", res_format))
if use_stored and self.kw.get("test_id", None):
args.append(("id", self.kw["test_id"]))
if check_name:
args.append(("check_name", check_name))
elif self.resource.check_name is not None:
args.append(("check_name", self.resource.check_name))
return Markup(
f"<a href='?{urlencode(args, doseq=True)}'"
f"class='{css_class}' title='{title}'>{link_value}</a>"
Expand All @@ -280,12 +282,6 @@ def redbot_link(
args.append(("req_hdr", f"{name}:{val}"))
if referer:
args.append(("req_hdr", f"Referer:{uri}"))
if check_name:
args.append(("check_name", check_name))
elif self.resource.check_name is not None:
args.append(("check_name", self.resource.check_name))
if res_format:
args.append(("format", res_format))
if descend:
args.append(("descend", "1"))
argstring = "".join(
Expand Down

0 comments on commit e542a8b

Please sign in to comment.