X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=gruntmaster-problem;h=819b7ef0a4c3f97ed91f282fc92d35f2ef244890;hb=78c794d653161038dd4ef5986d7c7a5b96baff82;hp=dac2e0237ce9d18d5d54b02bc6cc6a3e38107020;hpb=edfc5928b7d9ee441f2f0eaf9b3cadec58bbf947;p=gruntmaster-data.git diff --git a/gruntmaster-problem b/gruntmaster-problem index dac2e02..819b7ef 100755 --- a/gruntmaster-problem +++ b/gruntmaster-problem @@ -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{