From: Marius Gavrilescu Date: Thu, 27 Mar 2014 16:05:01 +0000 (+0200) Subject: Fix purge X-Git-Tag: 5999.000_003~20 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=214632a8941ecaf2e7c0addf99210b9d571bb6fa;p=gruntmaster-daemon.git Fix purge --- diff --git a/lib/Gruntmaster/Daemon.pm b/lib/Gruntmaster/Daemon.pm index 7b41f8c..35103a5 100644 --- a/lib/Gruntmaster/Daemon.pm +++ b/lib/Gruntmaster/Daemon.pm @@ -129,7 +129,7 @@ sub process{ $errors ? (errors => $errors) : () }); - my $log = $jobr->contest ? 'ct/' . $jobr->contest . '/log' : 'log'; + my $log = $jobr->contest ? 'ct/' . $jobr->contest->id . '/log' : 'log'; my $page = ($job + PAGE_SIZE - 1) / PAGE_SIZE; purge "/$log/$job";