defhash problem => qw/name level difficulty statement owner author private generator runner judge testcnt timeout olimit/;
defhash contest => qw/start end name owner/;
defhash job => qw/date errors extension filesize private problem result result_text user/;
-defhash user => qw/name email town university level/;
+defhash user => qw/name email lastjob town university level/;
sub clean_job (_){
HDEL cp . "job.$_[0]", qw/result result_text results daemon/
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__ . '::'};