Commit 4f005044 by jmvt

Added time of query display.

parent bc268aa7
...@@ -348,7 +348,7 @@ function goto( mode) ...@@ -348,7 +348,7 @@ function goto( mode)
Number of students enrolled: Number of students enrolled:
% if students_enrolled_json is not None: % if students_enrolled_json is not None:
% if students_enrolled_json['status'] == 'success': % if students_enrolled_json['status'] == 'success':
${students_enrolled_json['data']['value']} ${students_enrolled_json['data']['value']} as of ${students_enrolled_json['time']}
% else: % else:
<i> ${students_enrolled_json['error']} </i> <i> ${students_enrolled_json['error']} </i>
% endif % endif
...@@ -361,7 +361,7 @@ function goto( mode) ...@@ -361,7 +361,7 @@ function goto( mode)
Number of active students for the past 7 days: Number of active students for the past 7 days:
% if students_active_json is not None: % if students_active_json is not None:
% if students_active_json['status'] == 'success': % if students_active_json['status'] == 'success':
${students_active_json['data']['value']} ${students_active_json['data']['value']} as of ${students_active_json['time']}
% else: % else:
<i> ${students_active_json['error']} </i> <i> ${students_active_json['error']} </i>
% endif % endif
...@@ -400,7 +400,7 @@ function goto( mode) ...@@ -400,7 +400,7 @@ function goto( mode)
</div> </div>
<p> <p>
<p>Number of active students per problems who have this problem graded as correct:</p> <p>Number of students per problem who have this problem graded as correct, as of ${students_per_problem_correct_json['time']}</p>
% if students_per_problem_correct_json is not None: % if students_per_problem_correct_json is not None:
% if students_per_problem_correct_json['status'] == 'success': % if students_per_problem_correct_json['status'] == 'success':
...@@ -420,28 +420,30 @@ function goto( mode) ...@@ -420,28 +420,30 @@ function goto( mode)
% endif % endif
</p> </p>
## <p> <p>
## <p>Students who attempted at least one exercise:</p> Students per module who attempted at least one problem
##
## % if attempted_problems is not None: % if attempted_problems is not None:
## % if attempted_problems['status'] == 'success': , as of ${attempted_problems['time']}
## <div class="divScroll"> % if attempted_problems['status'] == 'success':
## <table class="stat_table"> <div class="divScroll">
## <tr><th>Module</th><th>Number of students</th></tr> <table class="stat_table">
## % for k,v in attempted_problems['data'].items(): <tr><th>Module</th><th>Number of students</th></tr>
## <tr> <td>${k}</td> <td>${v}</td> </tr> % for k,v in attempted_problems['data'].items():
## % endfor <tr> <td>${k}</td> <td>${v}</td> </tr>
## </table> % endfor
## </div> </table>
## % else: </div>
## <i> ${attempted_problems['error']}</i> % else:
## % endif <i> ${attempted_problems['error']}</i>
## % else: % endif
## <i> null data </i> % else:
## % endif <i>: null data </i>
## </p> % endif
##
## <p> </p>
<p>
## <p>Number of students who dropped off per day before becoming inactive:</p> ## <p>Number of students who dropped off per day before becoming inactive:</p>
## ##
## % if dropoff_per_day is not None: ## % if dropoff_per_day is not None:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment