- Timestamp:
- 04/07/09 01:02:45 (15 years ago)
- Location:
- trunk/lib/Vote
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Vote/Controller/Newpoll.pm
r128 r170 25 25 my ( $self, $c ) = @_; 26 26 $c->model('Vote')->db->rollback; 27 $c->model('Vote')->clean_old_poll_request and $c->model('Vote')->db->commit; 27 28 } 28 29 -
trunk/lib/Vote/DB.pm
r165 r170 295 295 my ($self, $voteid, $mailinfo) = @_; 296 296 $self->poll($voteid)->mail_passwd_ifnul($mailinfo); 297 } 298 299 sub clean_old_poll_request { 300 my ($self) = @_; 301 302 $self->db->do(q{delete from poll_request where "create" < now() - '30 days'::interval}); 297 303 } 298 304
Note: See TracChangeset
for help on using the changeset viewer.