Rev 14341 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
14339 | guerimand | 1 | !! ------------ save new score for all participant in the class |
2 | |||
3 | m=!record 0 of wimshome/log/classes/$wims_class/sheets/.severity |
||
4 | maxscore=!word 1 of $m |
||
5 | !bound maxscore between 0 and 100000 default 10 |
||
6 | !sh mv $wims_home/log/classes/$wims_class/.grades $wims_home/log/classes/$wims_class/.grades.old |
||
7 | data=!record 1 of wimshome/log/classes/$wims_class/.grades.old |
||
8 | !writefile wimshome/log/classes/$wims_class/.grades :$data |
||
9 | !for i=1 to $nbuser |
||
10 | student=!item $i of $ulist |
||
11 | key=!positionof item $student in $uulist |
||
12 | !bound score$i between 0 and $maxscore default $empty |
||
13 | !if $key=$empty |
||
14 | list=!values 0 for v=1 to $nbscore |
||
15 | list=!replace internal 0 by $empty in $list |
||
16 | list=!replace item number $scoring by $(score$i) in $list |
||
17 | !appendfile wimshome/log/classes/$wims_class/.grades :$student,$(flist[$i]) $(llist[$i]),$list |
||
18 | !else |
||
19 | update_content=!record $[$key+1] of wimshome/log/classes/$wims_class/.grades.old |
||
20 | update_content=!replace item number $[$scoring+2] by $(score$i) in $update_content |
||
21 | !appendfile wimshome/log/classes/$wims_class/.grades :$update_content |
||
22 | !endif |
||
23 | !next i |
||
24 | !sh rm -f $wims_home/log/classes/$wims_class/.grades.old |
||
25 | !restart module=adm/class/freework&job=configfw&freework=$freework |