From b3f5addc3109379bae47fa62e3f4098b0c97d120 Mon Sep 17 00:00:00 2001 From: raph Date: Sat, 14 Sep 2024 07:01:01 +0200 Subject: [PATCH] Fix /output page (#3948) --- src/subcommand/server.rs | 4 ++-- src/templates/output.rs | 4 ++-- templates/output.html | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/subcommand/server.rs b/src/subcommand/server.rs index 0bb90b6eab..313f40abfa 100644 --- a/src/subcommand/server.rs +++ b/src/subcommand/server.rs @@ -3726,7 +3726,7 @@ mod tests {

1 Sat Range

.*" ), ); @@ -3771,7 +3771,7 @@ mod tests {

1 Sat Range

.*" ), ); diff --git a/src/templates/output.rs b/src/templates/output.rs index cefc2036a7..7bcd0c7009 100644 --- a/src/templates/output.rs +++ b/src/templates/output.rs @@ -48,7 +48,7 @@ mod tests {

2 Sat Ranges

" .unindent() @@ -107,7 +107,7 @@ mod tests {

2 Sat Ranges

" .unindent() diff --git a/templates/output.html b/templates/output.html index a6e57e29c3..ffbdde4a37 100644 --- a/templates/output.html +++ b/templates/output.html @@ -41,7 +41,7 @@

{{"Sat Range".tally(sat_ranges.len())}}

%% if value == 1 {
  • {{start}}
  • %% } else { -
  • {{start}}-{{end}} ({{value}} sats)
  • +
  • {{start}}-{{end}} ({{value}} sats)
  • %% } %% }