Remove problem_full as it does not exist anymore
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon.pm
index cc4a1290c27caa25fe618f04281ff3c4a292bded..03810bacc66264b41aacabd4f3277a93440c1da8 100644 (file)
@@ -105,7 +105,7 @@ sub process{
 
 sub process_job {
        my ($job) = @_;
-       my $pb = problem_full($job->{problem});
+       my $pb = db()->select('problems', '*', {id => $job->{problem}})->hash;
        my $meta = {
                problem => $job->{problem},
                files => {
@@ -153,7 +153,7 @@ my $daemon = hostname . ":$$";
 sub run{
        require Gruntmaster::Data;
        Gruntmaster::Data->import;
-       Gruntmaster::Data::init($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');
+       dbinit($ENV{GRUNTMASTER_DSN} // 'dbi:Pg:');
        Log::Log4perl->init('/etc/gruntmasterd/gruntmasterd-log.conf');
        get_logger->info("gruntmasterd $VERSION started ($daemon)");
        my $dir = tempdir 'gruntmasterd.XXXX', CLEANUP => 1, TMPDIR => 1;
This page took 0.009719 seconds and 4 git commands to generate.