momentumfrc / attendance-manager

Keep track of the attendence of our team members by allowing mentors to check students in and out.
0 stars 0 forks source link

Fix missing incomplete attendance sessions #77

Open lost1227 opened 3 months ago

lost1227 commented 3 months ago

At today's meeting, Dean was checked-in, but he left without checking-out. This should count as a missed checkout, but instead it just doesn't show up at all on the student-details page.

image

image

Seems the SQL for the attendance-sessions view needs to be updated. There are two possibilities:

  1. (Easiest) Always assume that, if the most recent event is a check-in, it's due to a missed check-out.
  2. (More difficult) If the most recent event is a check-in, only assume that it is a missed check-in if a more recent attendance event has been registered. Otherwise, assume that a meeting is still in-progress and hide the check-in from the student details until either a corresponding check-out or an end-of-meeting event is logged.