projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d17951d
)
Add database support for problem opening
author
Marius Gavrilescu
<marius@ieval.ro>
Wed, 29 Jan 2014 23:14:26 +0000
(
01:14
+0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Wed, 29 Jan 2014 23:14:26 +0000
(
01:14
+0200)
lib/Gruntmaster/Data.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Data.pm
b/lib/Gruntmaster/Data.pm
index eaa96c544db63aa5752ae513958dc781899cedfe..1b2492cc28c6a07dc927edf30d4039ec9fe1e1eb 100644
(file)
--- a/
lib/Gruntmaster/Data.pm
+++ b/
lib/Gruntmaster/Data.pm
@@
-84,6
+84,16
@@
sub clean_job (_){
HDEL cp . "job.$_[0]", qw/result result_text results daemon/
}
+sub mark_open {
+ my ($problem, $user) = @_;
+ HSETNX cp . 'open', "$problem.$user", time;
+}
+
+sub get_open {
+ my ($problem, $user) = @_;
+ HGET cp . 'open', "$problem.$user";
+}
+
our @EXPORT = do {
no strict 'refs';
grep { $_ =~ /^[a-zA-Z]/ and exists &$_ } keys %{__PACKAGE__ . '::'};
This page took
0.010578 seconds
and
4
git commands to generate.