]> iEval git - gruntmaster-data.git/commitdiff
Make redis-to-postgres also copy the tests column of problems
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 18:36:14 +0000 (20:36 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 24 Mar 2014 18:56:58 +0000 (20:56 +0200)
redis-to-postgres

index 5ed15759c70594bffcec9ee8b7074f52d3aa6950..330d5a6e0cee6c140d62fc8b30443089eadc5de9 100755 (executable)
@@ -37,6 +37,7 @@ for (problems) {
                statement => problem_statement,
                testcnt => problem_testcnt() // $meta->{testcnt},
                timeout => problem_timeout() // $meta->{timeout},
+               (problem_runner() // $meta->{runner}) eq 'File' ? (tests => encode_json $meta->{tests}) : (),
                exists $meta->{files} ? (versource => $meta->{files}{ver}{content}, verformat => $meta->{files}{ver}{format}) : ()
        })
 }
This page took 0.026026 seconds and 4 git commands to generate.