Add class numberOfSessions and fix attendance completion detection.
Sessions with full student attendance are now excluded from the pending list reliably by loading class rosters from the database.
This commit is contained in:
@@ -73,6 +73,11 @@ const classSchema = new mongoose.Schema({
|
||||
trim: true,
|
||||
default: ''
|
||||
},
|
||||
numberOfSessions: {
|
||||
type: Number,
|
||||
min: 1,
|
||||
default: null
|
||||
},
|
||||
isActive: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
|
||||
Reference in New Issue
Block a user