Add contest support to filesystem infiles/okfiles
[gruntmaster-daemon.git] / lib / Gruntmaster / Daemon / Generator / File.pm
index fb1dc5e8d900ac2b32550a81abd7768b61aa0185..8c2ed5b26cc45ba13737a17e37ba906bcc9df143 100644 (file)
@@ -18,7 +18,8 @@ sub generate{
   if (exists $meta->{infile}) {
          write_file 'input', $meta->{infile}[$test - 1]
   } else {
-         copy "/var/lib/gruntmasterd/pb/$meta->{problem}/$test.in", 'input'
+         my $ct = defined $Gruntmaster::Data::contest ? "ct/$Gruntmaster::Data::contest" : '';
+         copy "/var/lib/gruntmasterd/$ct/pb/$meta->{problem}/$test.in", 'input'
   }
 }
 
This page took 0.009227 seconds and 4 git commands to generate.