diff options
Diffstat (limited to 'cgi/manage.py')
-rw-r--r-- | cgi/manage.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cgi/manage.py b/cgi/manage.py index 03963e7..2fef8ca 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -127,6 +127,13 @@ def manage(self, path_split): 'board': _('news'), 'time': timeTaken(t1, time.time())} logAction(staff_account['username'], _( 'Rebuilt %s') % _('news')) + elif board_dir == '!TRASH': + t1 = time.time() + regenerateTrash() + message = _('Rebuilt %(board)s in %(time)s seconds.') % { + 'board': _('trash'), 'time': timeTaken(t1, time.time())} + logAction(staff_account['username'], _( + 'Rebuilt %s') % _('trash')) elif board_dir == '!KAKO': t1 = time.time() boards = FetchAll( |