This shows you the differences between two versions of the page.
stats:proc:publishresults [2012/01/11 14:44] Patrick Michel |
stats:proc:publishresults [2013/07/10 12:32] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Publish Results ====== | ||
- | |||
- | <code xcend> | ||
- | publishResults(string uid, string id) { | ||
- | assume exists //accounts/account[uid]/examiner[id]; | ||
- | |||
- | assume exists //exams/exam[id]; | ||
- | |||
- | assume not //exams/exam[id]/published; | ||
- | |||
- | update //exams/exam[id]/published true; | ||
- | } | ||
- | </code> | ||