]> iEval git - gruntmaster-data.git/commitdiff
Fix crash in gruntmaster-problem
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 16:37:35 +0000 (18:37 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 3 Feb 2015 16:37:35 +0000 (18:37 +0200)
gruntmaster-problem

index d9dbb736aa4318b7ebe51ff8906a111af7b1581a..819b7ef0a4c3f97ed91f282fc92d35f2ef244890 100755 (executable)
@@ -93,7 +93,7 @@ sub cmd_add{
 sub cmd_set{
        my $file;
        GetOptions ( 'file!' => \$file );
-       my ($id, %values) = @_;
+       my ($id, %values) = @ARGV;
        %values = map { $_ => scalar read_file $values{$_} } keys %values if $file;
        $db->problem($id)->update(\%values);
 }
This page took 0.028637 seconds and 4 git commands to generate.