Fix test results summary
Committed 582953
--- a/webint_code/templates/project/index.html
+++ b/webint_code/templates/project/index.html
$ test_color = "red"
$ test_indicator = "■"
$ plural = ""
- $if len(test_results["errors"]) > 1:
+ $if test_results["errors"] > 1:
$ plural = "s"
$ test_msg = f"{test_results['errors']} test{plural} of {test_results['tests']} failing"
$else:
$ test_color = "green"
$ test_indicator = "●"
$ plural = ""
- $if len(test_results["tests"]) > 1:
+ $if test_results["tests"] > 1:
$ plural = "s"
$ test_msg = f"{test_results['tests']} test{plural} passing"
<span style=color:$test_color>$:test_indicator</span>