projects
/
gruntmaster-data.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
646feed
)
Add lastjob
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 26 Feb 2014 08:12:39 +0000
(10:12 +0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 26 Feb 2014 08:12:39 +0000
(10:12 +0200)
lib/Gruntmaster/Data.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Data.pm
b/lib/Gruntmaster/Data.pm
index 3e70b21dc59a8abd217918f7859662a246e5121f..4592ac1a95d8630c9a91369c6691da3436f42e7f 100644
(file)
--- a/
lib/Gruntmaster/Data.pm
+++ b/
lib/Gruntmaster/Data.pm
@@
-94,6
+94,14
@@
sub get_open {
HGET cp . 'open', "$problem.$user";
}
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__ . '::'};
our @EXPORT = do {
no strict 'refs';
grep { $_ =~ /^[a-zA-Z]/ and exists &$_ } keys %{__PACKAGE__ . '::'};
This page took
0.010986 seconds
and
4
git commands to generate.