projects
/
gruntmaster-data.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
add75bf
)
Purge problem/contest list after adding problem/contest
author
Marius Gavrilescu
<marius@ieval.ro>
Mon, 7 Dec 2015 16:26:13 +0000
(18:26 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Mon, 7 Dec 2015 16:26:13 +0000
(18:26 +0200)
lib/Gruntmaster/App/Command/Add.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/App/Command/Add.pm
b/lib/Gruntmaster/App/Command/Add.pm
index b54e4abdd1841126d6fd4b4acf66b4cfc7788017..38f7836edff76704cdfd6d6af625dd3a95856c69 100644
(file)
--- a/
lib/Gruntmaster/App/Command/Add.pm
+++ b/
lib/Gruntmaster/App/Command/Add.pm
@@
-52,6
+52,7
@@
sub add_contest {
my $stop = str2time prompt 'Stop time' or die "Cannot parse time\n";
db->insert(contests => {id => $id, name => $name, owner => $owner, start => $start, stop => $stop});
+ purge '/ct/';
}
sub add_problem {
@@
-118,6
+119,7
@@
sub add_problem {
$options{tests} = encode_json \@tests if @tests;
db->insert(problems => \%options);
db->insert(contest_problems => {problem => $id, contest => $contest}) if $contest;
+ purge '/pb/';
}
1;
This page took
0.011213 seconds
and
4
git commands to generate.