]> iEval git - gruntmaster-data.git/blobdiff - gruntmaster-problem
Fix update_status again
[gruntmaster-data.git] / gruntmaster-problem
index dac2e0237ce9d18d5d54b02bc6cc6a3e38107020..819b7ef0a4c3f97ed91f282fc92d35f2ef244890 100755 (executable)
@@ -88,17 +88,14 @@ sub cmd_add{
        $db->problems->create (\%options);
 
        $db->contest_problems->create({problem => $id, contest => $contest}) if $contest;
-       purge '/pb/';
 }
 
 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);
-       purge '/pb/';
-       purge "/pb/$id";
 }
 
 sub cmd_get{
@@ -114,8 +111,6 @@ sub cmd_list{
 sub cmd_rm{
        my ($id) = @_;
        $db->problem($id)->delete;
-       purge '/pb/';
-       purge "/pb/$id";
 }
 
 sub cmd_show{
This page took 0.023482 seconds and 4 git commands to generate.