From 16fe7a4c26f7680e85adf5d8ad8752f8b3ea113c Mon Sep 17 00:00:00 2001 From: Marius Gavrilescu Date: Wed, 26 Feb 2014 10:12:39 +0200 Subject: [PATCH] Add lastjob --- lib/Gruntmaster/Data.pm | 8 ++++++++ 1 file changed, 8 insertions(+) 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__ . '::'}; -- 2.39.2