Update README and copyright notices
[gruntmaster-data.git] / lib / Gruntmaster / Data.pm
index 3fed5b3fe360e87d498c69d248a7f67d431616f1..d5d7152462e1218a274c5dd1421ee3a9c56513dc 100644 (file)
@@ -4,7 +4,7 @@ use warnings;
 
 use parent qw/Exporter/;
 our $VERSION = '5999.000_013';
-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/; ## no critic (ProhibitAutomaticExportation)
+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 @EXPORT_OK = @EXPORT;
 
 use JSON::MaybeXS qw/decode_json/;
@@ -279,8 +279,8 @@ sub finish_job {
 sub open_problem {
        my ($contest, $problem, $owner, $time) = @_;
        my $ct = contest_entry($contest);
-       return unless $ct->{id} && $time >= $ct->{start} && $time < $ct->{stop};
-       eval { db->insert(opens => {
+       return unless $ct->{id} && $time >= $ct->{start} && $time < $ct->{stop}; ## no critic (ProhibitNegativeExpressionsInUnlessAndUntilConditions)
+       eval { db->insert(opens => { ## no critic (RequireCheckingReturnValueOfEval)
                contest => $contest,
                problem => $problem,
                owner => $owner,
@@ -467,10 +467,10 @@ Marius Gavrilescu E<lt>marius@ieval.roE<gt>
 
 =head1 COPYRIGHT AND LICENSE
 
-Copyright (C) 2014 by Marius Gavrilescu
+Copyright (C) 2014-2015 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.18.1 or,
+it under the same terms as Perl itself, either Perl version 5.20.1 or,
 at your option, any later version of Perl 5 you may have available.
 
 
This page took 0.01061 seconds and 4 git commands to generate.