]> iEval git - gruntmaster-page.git/commitdiff
Merge branch 'master' into newmc
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 18:04:07 +0000 (20:04 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 25 Feb 2015 18:04:07 +0000 (20:04 +0200)
Conflicts:
lib/Plack/App/Gruntmaster.pm

lib/Plack/App/Gruntmaster.pm
lib/Plack/App/Gruntmaster/HTML.pm

index 80bcc1a9c130563aacdce3ac9b72aaade7d33d6b..aa473d866c1376d349c722c053329af5a3338232 100644 (file)
@@ -165,7 +165,7 @@ sub dispatch_request{
                },
 
                sub (/ed/:contest) {
-                       forbid contest->is_running;
+                       forbid !contest->is_finished;
                        my $pblist = db->problem_list(contest => $_{contest}, solution => 1);
                        response ed => 'Editorial of ' . contest->name, {%$pblist, editorial => contest->editorial};
                },
index 319a5e509d70d71b881829a4addeb27fd010bae2..66468ca6a1aa6eabf2b3de81ec10d2ce6777ebef 100644 (file)
@@ -287,6 +287,6 @@ sub process_ed {
                $div->set_child_content(class => 'solution', literal $data->{solution});
                $div->fclass('problem')->namedlink($data->{id}, $data->{name});
        };
-       my @pb = map { @{$args{$_}} } qw/beginner easy medium hard/;
+       my @pb = map { @{$args{$_} // []} } qw/beginner easy medium hard/;
        $tree->fclass('well')->iter3(\@pb, $iter);
 }
This page took 0.023971 seconds and 4 git commands to generate.