Attendance validation involving Location Detection + Facial Recoginition with Liveness Detection
This commit is contained in:
@@ -124,9 +124,13 @@ class _SchedulePanel extends ConsumerWidget {
|
||||
data: (allSchedules) {
|
||||
final now = AppTime.now();
|
||||
final today = DateTime(now.year, now.month, now.day);
|
||||
// Exclude overtime schedules – they only belong in the Logbook.
|
||||
final nonOvertime = allSchedules
|
||||
.where((s) => s.shiftType != 'overtime')
|
||||
.toList();
|
||||
final schedules = showPast
|
||||
? allSchedules
|
||||
: allSchedules
|
||||
? nonOvertime
|
||||
: nonOvertime
|
||||
.where((s) => !s.endTime.isBefore(today))
|
||||
.toList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user