Anzeige der Sitzungsdauer

This commit is contained in:
lars 2012-08-18 09:55:32 +00:00
parent cac5ec5db2
commit 6242294d3b

View file

@ -19,7 +19,7 @@
</tr> </tr>
<tr py:for="question in Question.select().orderBy('weight')"> <tr py:for="question in Question.select().orderBy('weight')">
<td>${question.weight}</td> <td>${question.weight}</td>
<td>${Answer.selectBy(question=question, option=Option.select()[0]).count()}</td> <td>${Answer.selectBy(question=question).count()}</td>
</tr> </tr>
</table> </table>
@ -31,6 +31,7 @@
<th>Fragen</th> <th>Fragen</th>
<th>versandt</th> <th>versandt</th>
<th>Standard?</th> <th>Standard?</th>
<th>Dauer</th>
</tr> </tr>
<tr py:for="session in Session.select().orderBy('created')"> <tr py:for="session in Session.select().orderBy('created')">
<td>${session.id}</td> <td>${session.id}</td>
@ -38,6 +39,7 @@
<td>${Answer.selectBy(session=session).count()}</td> <td>${Answer.selectBy(session=session).count()}</td>
<td>${Submission.selectBy(session=session).count() > 0}</td> <td>${Submission.selectBy(session=session).count() > 0}</td>
<td>${Submission.selectBy(session=session, to_default_destination=True).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> </tr>
</table> </table>