Skip to content

Commit

Permalink
Support for problemsets
Browse files Browse the repository at this point in the history
  • Loading branch information
lhchavez committed Jan 26, 2017
1 parent 8101c01 commit 8189263
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/grader/v1compat_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func v1CompatNewRunContext(
settings := common.ProblemSettings{}
err := db.QueryRow(
`SELECT
r.run_id, c.alias, r.language, p.alias, cp.points,
r.run_id, c.alias, r.language, p.alias, pp.points,
p.extra_wall_time, p.memory_limit, p.output_limit,
p.overall_wall_time_limit, p.time_limit, p.validator_time_limit, p.slow,
p.validator
Expand All @@ -309,10 +309,10 @@ func v1CompatNewRunContext(
INNER JOIN
Problems p ON p.problem_id = r.problem_id
LEFT JOIN
Contests c ON c.contest_id = r.contest_id
Problemset_Problems pp ON pp.problem_id = r.problem_id AND
pp.problemset_id = r.problemset_id
LEFT JOIN
Contest_Problems cp ON cp.problem_id = r.problem_id AND
cp.contest_id = r.contest_id
Contests c ON c.problemset_id = pp.problemset_id
WHERE
r.guid = ?;`, guid).Scan(
&runCtx.ID,
Expand Down

0 comments on commit 8189263

Please sign in to comment.