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