[Vulcan/Hebe] Add handling custom presence types.

This commit is contained in:
Kuba Szczodrzyński 2021-02-21 23:30:20 +01:00
parent e869107101
commit a11a44b768

View File

@ -132,7 +132,10 @@ class VulcanHebeAttendance(
else if (released)
Attendance.TYPE_RELEASED
else if (present)
Attendance.TYPE_PRESENT
if (attendanceType.getInt("CategoryId") != 1)
Attendance.TYPE_PRESENT_CUSTOM
else
Attendance.TYPE_PRESENT
else
Attendance.TYPE_UNKNOWN
}