Fix typo causing Result object reusage between tests
This commit is contained in:
1 parent
9b02605802
commit
beb1df32ef
3 files changed
+5
-5
No files matched your search
+1
-1
@@ -155,7 +155,7 @@ def getResult(machine, test):
|
||||
|
||||
# Can find an existing result by test and machine
|
||||
results = Result.objects.filter(test=test)
|
||||
results = list(Result.objects.filter(machine=machine))
|
||||
results = list(results.filter(machine=machine))
|
||||
if results != []: return results[0]
|
||||
|
||||
# Must make a new one for the machine
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
{% for machine in machines %}
|
||||
<tr>
|
||||
<td>{{machine.owner}}</th>
|
||||
<td>{{machine.osname}}</th>
|
||||
<td>{{machine.updated}}</th>
|
||||
<td style="text-align:left">{{machine.osname}}</th>
|
||||
<td>{{machine.updated|date:'Y-m-d H:i'}}</th>
|
||||
<td>{{machine.threads}}</th>
|
||||
<td>{{machine.mnps|twoDigitPrecision}}</th>
|
||||
</tr>
|
||||
|
||||
@@ -120,8 +120,8 @@
|
||||
{% for result in results %}
|
||||
<tr>
|
||||
<td>{{result.machine.owner}}</th>
|
||||
<td>{{result.machine.osname}}</th>
|
||||
<td>{{result.updated}}</td>
|
||||
<td style="text-align:left">{{result.machine.osname}}</th>
|
||||
<td>{{result.updated|date:'Y-m-d H:i'}}</td>
|
||||
<td>{{result.games}}</td>
|
||||
<td>{{result.wins}}</td>
|
||||
<td>{{result.losses}}</td>
|
||||
|
||||
Reference in new issue
Block a user