From e542a8bfd2a23af90664ca121feae6e67fbf6316 Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Mon, 11 Dec 2023 16:46:39 +1100 Subject: [PATCH] Fixed: format argument for saved tests --- redbot/formatter/html_base.py | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/redbot/formatter/html_base.py b/redbot/formatter/html_base.py index 1e0db177..dd2d6bec 100644 --- a/redbot/formatter/html_base.py +++ b/redbot/formatter/html_base.py @@ -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"{link_value}" @@ -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(