Anzeige der Sitzungsdauer
This commit is contained in:
parent
cac5ec5db2
commit
6242294d3b
1 changed files with 3 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
|||
</tr>
|
||||
<tr py:for="question in Question.select().orderBy('weight')">
|
||||
<td>${question.weight}</td>
|
||||
<td>${Answer.selectBy(question=question, option=Option.select()[0]).count()}</td>
|
||||
<td>${Answer.selectBy(question=question).count()}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
@ -31,6 +31,7 @@
|
|||
<th>Fragen</th>
|
||||
<th>versandt</th>
|
||||
<th>Standard?</th>
|
||||
<th>Dauer</th>
|
||||
</tr>
|
||||
<tr py:for="session in Session.select().orderBy('created')">
|
||||
<td>${session.id}</td>
|
||||
|
@ -38,6 +39,7 @@
|
|||
<td>${Answer.selectBy(session=session).count()}</td>
|
||||
<td>${Submission.selectBy(session=session).count() > 0}</td>
|
||||
<td>${Submission.selectBy(session=session, to_default_destination=True).count() > 0}</td>
|
||||
<td>${[submission.timestamp - submission.session.created for submission in Submission.selectBy(session=session)]}</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
|
|
Loading…
Reference in a new issue