Description:
fix download score in user_stat not working
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r499:1da8597120e1 - - 1 file changed: 6 inserted, 0 deleted
@@ -150,6 +150,12 | |||
|
150 | 150 | end |
|
151 | 151 | @scorearray << ustat |
|
152 | 152 | end |
|
153 | + if params[:commit] == 'download csv' then | |
|
154 | + csv = gen_csv_from_scorearray(@scorearray,@problems) | |
|
155 | + send_data csv, filename: 'last_score.csv' | |
|
156 | + else | |
|
157 | + render template: 'user_admin/user_stat' | |
|
158 | + end | |
|
153 | 159 | end |
|
154 | 160 | |
|
155 | 161 | def user_stat_max |
You need to be logged in to leave comments.
Login now