Description:
fix bug in score report
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r614:20f955456e9b - - 1 file changed: 2 inserted, 2 deleted
@@ -52,8 +52,8 | |||||
|
52 | end |
|
52 | end |
|
53 |
|
53 | ||
|
54 | #set up range from param |
|
54 | #set up range from param |
|
55 |
- since_id = params.fetch(:m |
|
55 | + since_id = params.fetch(:from_id, 0).to_i |
|
56 |
- until_id = params.fetch(: |
|
56 | + until_id = params.fetch(:to_id, 0).to_i |
|
57 |
|
57 | ||
|
58 | #calculate the routine |
|
58 | #calculate the routine |
|
59 | @scorearray = calculate_max_score(@problems, @users,since_id,until_id) |
|
59 | @scorearray = calculate_max_score(@problems, @users,since_id,until_id) |
You need to be logged in to leave comments.
Login now