From: Marius Gavrilescu Date: Wed, 26 Feb 2014 08:12:39 +0000 (+0200) Subject: Add lastjob X-Git-Tag: 5999.000_002~4 X-Git-Url: http://git.ieval.ro/?a=commitdiff_plain;h=16fe7a4c26f7680e85adf5d8ad8752f8b3ea113c;p=gruntmaster-data.git Add lastjob --- diff --git a/lib/Gruntmaster/Data.pm b/lib/Gruntmaster/Data.pm index 3e70b21..4592ac1 100644 --- a/lib/Gruntmaster/Data.pm +++ b/lib/Gruntmaster/Data.pm @@ -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__ . '::'};