Closed nbrowning1 closed 6 years ago
First part of this (sending emails with details) added in https://github.com/nbrowning1/FYP/pull/23
Example output (from unit tests):
Staff
Modules:
--------
COM101 - COM101-1: 100.0% Attendance
Lectures:
---------
id1 -- Jan. 1, 2018: 100.0% Attendance
COM202 - COM202-1: 50.0% Attendance
Lectures:
---------
id2 -- Jan. 1, 2018: 0.0% Attendance
id3 -- Jan. 25, 2018: 50.0% Attendance
id4 -- Jan. 25, 2018: 100.0% Attendance
Student
Your attendance report for Feb. 5, 2018 to Feb. 6, 2018:
Modules:
--------
COM202 - COM202-1: 50.0% Attendance
Updated outputs with some additional information added in https://github.com/nbrowning1/FYP/commit/c9d9c57e0906ca1a61f43d9f3ff4bdcaee6a2987
Staff
Modules:
--------
COM101 - COM101-1: 100.00% Attendance
Lectures:
---------
id1 -- Jan. 1, 2018: 100.00% Attendance
COM202 - COM202-1: 33.33% Attendance - ** Low Attendance Warning **
Lectures:
---------
id2 -- Jan. 1, 2018: 0.00% Attendance
id3 -- Jan. 25, 2018: 50.00% Attendance
id4 -- Jan. 25, 2018: 50.00% Attendance
Warning students:
-----------------
teststudent2 - 0.00% Attendance
Student
Your attendance report for Feb. 5, 2018 to Feb. 11, 2018:
Modules:
--------
COM202 - COM202-1: 100.00% Attendance
Your attendance report for Feb. 5, 2018 to Feb. 11, 2018:
Modules:
--------
COM202 - COM202-1: 0.00% Attendance - ** Low Attendance Warning **
Some logic on the attendance data should be performed at a fixed interval e.g. each Friday at 6pm.
This should trigger for: Student:
to avoid flooding a lecturer's inbox, it should be collated into a single report for all students enrolled in their modules
Whole Module Attendance: