User Tools

Site Tools


stats:proc:removeparticipant

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
stats:proc:removeparticipant [2011/10/02 10:35]
Patrick Michel
stats:proc:removeparticipant [2011/11/28 17:15]
Patrick Michel
Line 3: Line 3:
 <code xcend> <code xcend>
 removeParticipant(ident uid, ident id, ident studentId) { removeParticipant(ident uid, ident id, ident studentId) {
-  assume exists //​accounts/​account[uid]/​examiner[id];​+  assume ​exists //​exams/​exam[id]/​free && exists //​accounts/​account[uid]/​student && //​accounts/​account[uid]/​student/​id = studentId 
 +      || exists //​accounts/​account[uid]/​examiner[id];​
  
   assume exists //​exams/​exam[id]/​results/​participant[studentId];​ # implies the exam exists, which is implicitly true anyway   assume exists //​exams/​exam[id]/​results/​participant[studentId];​ # implies the exam exists, which is implicitly true anyway
stats/proc/removeparticipant.txt · Last modified: 2013/07/10 12:34 (external edit)