From d09ff51b6c957137e705fee73f1808c6333eed7f Mon Sep 17 00:00:00 2001 From: adityacp Date: Sat, 7 Nov 2020 18:54:15 +0530 Subject: Add additional model to store last access for lesson --- stats/templates/view_lesson_tracking.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'stats/templates/view_lesson_tracking.html') diff --git a/stats/templates/view_lesson_tracking.html b/stats/templates/view_lesson_tracking.html index fa891e3..7962410 100644 --- a/stats/templates/view_lesson_tracking.html +++ b/stats/templates/view_lesson_tracking.html @@ -47,20 +47,24 @@ Student Name  Last access on  Started on  - Current Time  + Current Duration  Video Duration  Percentage watched  + Total visits  {% for track in trackings %} {{ forloop.counter0|add:objects.start_index }} {{track.user.get_full_name}} - {{track.last_access_time}} + {% with track.get_last_access_time_and_vists as time_and_visits %} + {{time_and_visits.0}} {{track.creation_time}} {{track.current_time}} {{track.video_duration}} + {{time_and_visits.1}} + {% endwith %} {% endfor %} -- cgit