From 214632a8941ecaf2e7c0addf99210b9d571bb6fa Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Thu, 27 Mar 2014 18:05:01 +0200 Subject: [PATCH] Fix purge --- lib/Gruntmaster/Daemon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; -- 2.39.2