]> iEval git - gruntmaster-data.git/commitdiff
Add lastjob
authorMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Feb 2014 08:12:39 +0000 (10:12 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Wed, 26 Feb 2014 08:12:39 +0000 (10:12 +0200)
lib/Gruntmaster/Data.pm

index 3e70b21dc59a8abd217918f7859662a246e5121f..4592ac1a95d8630c9a91369c6691da3436f42e7f 100644 (file)
@@ -94,6 +94,14 @@ sub get_open {
        HGET cp . 'open', "$problem.$user";
 }
 
+sub lastjob {
+       HGET 'lastjob', $_[0];
+}
+
+sub set_lastjob {
+       HSET 'lastjob', $_[0], time;
+}
+
 our @EXPORT = do {
        no strict 'refs';
        grep { $_ =~ /^[a-zA-Z]/ and exists &$_ } keys %{__PACKAGE__ . '::'};
This page took 0.028422 seconds and 4 git commands to generate.