Resolve Issue #2
This commit is contained in:
1 parent
e5795a247d
commit
dfd3cd419b
2 files changed
+5
-16
No files matched your search
@@ -54,8 +54,8 @@ def statParagraph(test):
|
||||
elolower = twoDigitPrecision(test.elolower)
|
||||
eloupper = twoDigitPrecision(test.eloupper)
|
||||
|
||||
return 'SPRT @ {0}s Threads={1} Hash={2}MB<br>'.format(test.timecontrol, threads, hash) \
|
||||
+ 'LLR: {0} ({1}, {2}) [{3}, {4}]<br>'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \
|
||||
return 'SPRT @ {0}s Threads={1} Hash={2}MB\n'.format(test.timecontrol, threads, hash) \
|
||||
+ 'LLR: {0} ({1}, {2}) [{3}, {4}]\n'.format(currentllr, lowerllr, upperllr, elolower, eloupper) \
|
||||
+ 'Games: {0} W: {1} L: {2} D: {3}'.format(test.games, test.wins, test.losses, test.draws)
|
||||
|
||||
def testResultColour(test):
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "OpenBench/base.html" %}
|
||||
|
||||
{% load mytags %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<table class="datatable">
|
||||
<tr><td class="embedded"><h2>Pending</h2></td></tr>
|
||||
{% if pending %}
|
||||
@@ -21,12 +18,9 @@
|
||||
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
||||
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
||||
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
||||
{% autoescape off %}
|
||||
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
|
||||
{% endautoescape %}
|
||||
<td class="statblock"><strong>{{test|statParagraph|linebreaksbr}}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
<tr><td class="embedded"><h2>Active</h2></td></tr>
|
||||
{% if active %}
|
||||
<tr>
|
||||
@@ -43,12 +37,9 @@
|
||||
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
||||
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
||||
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
||||
{% autoescape off %}
|
||||
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
|
||||
{% endautoescape %}
|
||||
<td class="statblock"><strong>{{test|statParagraph|linebreaksbr}}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
<tr><td class="embedded"><h2>Finished</h2></td></tr>
|
||||
{% if completed %}
|
||||
<tr>
|
||||
@@ -65,9 +56,7 @@
|
||||
<td><a href="/viewUser/{{test.author}}">{{test.author}}</a></td>
|
||||
<td><a href="/viewTest/{{test.id}}">{{test.dev.name}}</a></td>
|
||||
<td class="textcenter"><a href="{{test|gitDiffLink}}">diff</a></td>
|
||||
{% autoescape off %}
|
||||
<td class="statblock"><strong>{{test|statParagraph}}</strong></td>
|
||||
{% endautoescape %}
|
||||
<td class="statblock"><strong>{{test|statParagraph|linebreaksbr}}</strong></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
Reference in new issue
Block a user