1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-22 22:03:54 +03:00

Removed needing of restart for KEEP_INFO_TIME

This commit is contained in:
Adolfo Gómez 2013-03-08 11:05:40 +00:00
parent 3041e9d2cd
commit 092b3bcbce

View File

@ -57,7 +57,7 @@ class UserServiceInfoItemsCleaner(Job):
@transaction.commit_on_success
def run(self):
removeFrom = getSqlDatetime() - timedelta(seconds = GlobalConfig.KEEP_INFO_TIME.getInt())
removeFrom = getSqlDatetime() - timedelta(seconds = GlobalConfig.KEEP_INFO_TIME.getInt(True))
logger.debug('Removing information user services from {0}'.format(removeFrom))
UserService.objects.select_for_update().filter(state__in=State.INFO_STATES, state_date__lt=removeFrom).delete()