X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FData.pm;h=c6b6f6f2097207bac5057593c9226c6f25e4bbda;hb=b35cbc0d6ca5baf03ffbeb2b9a375fa71f4d0ad3;hp=da2b3c59eb50851a3935f1fc95118b654cbb09d6;hpb=9baaf76b50b8888c5f851d1469b5d45255838738;p=gruntmaster-data.git diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index da2b3c5..c6b6f6f 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -3,8 +3,8 @@ use 5.014; use warnings; use parent qw/Exporter/; -our $VERSION = '5999.000_015'; -our @EXPORT = qw/dbinit purge db user_list user_entry problem_list problem_entry contest_list contest_entry contest_has_problem job_list job_entry create_job standings update_status rerun_job take_job finish_job open_problem/; +our $VERSION = '5999.000_016'; +our @EXPORT = qw/dbinit purge db user_list user_entry problem_list problem_entry contest_list contest_entry contest_has_problem job_list job_entry create_job standings update_status rerun_job rerun_problem take_job finish_job open_problem/; our @EXPORT_OK = @EXPORT; use JSON::MaybeXS qw/decode_json/; @@ -270,6 +270,7 @@ sub finish_job { db->update(jobs => \%args, {id => $job->{id}}); purge '/log/'; purge '/log/' . $job->{id}; + purge '/st/' . $job->{contest} if $job->{contest}; return if $private; my $status = { problem => $job->{problem}, @@ -474,7 +475,7 @@ Marius Gavrilescu Emarius@ieval.roE =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,