use 5.014000;
use warnings;
-our $VERSION = '5999.000_004';
+our $VERSION = '5999.000_016';
use Gruntmaster::App '-command';
use Gruntmaster::Data;
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 {
$options{tests} = encode_json \@tests if @tests;
db->insert(problems => \%options);
db->insert(contest_problems => {problem => $id, contest => $contest}) if $contest;
+ purge '/pb/';
}
1;
=head1 COPYRIGHT AND LICENSE
-Copyright (C) 2014-2015 by Marius Gavrilescu
+Copyright (C) 2014-2016 by Marius Gavrilescu
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself, either Perl version 5.20.1 or,