From 6eb5a7ccc88f6ac86684f4c37f284d9e1ca6aff9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Mon, 1 Feb 2016 17:47:34 +0100 Subject: [PATCH] Fixed security check --- server/src/uds/core/jobs/DelayedTaskRunner.py | 4 ++-- server/src/uds/reports/stats/usage_by_pool.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/uds/core/jobs/DelayedTaskRunner.py b/server/src/uds/core/jobs/DelayedTaskRunner.py index f3d5c3228..1b5abf9b6 100644 --- a/server/src/uds/core/jobs/DelayedTaskRunner.py +++ b/server/src/uds/core/jobs/DelayedTaskRunner.py @@ -44,7 +44,7 @@ import threading import time import logging -__updated__ = '2015-10-16' +__updated__ = '2016-02-01' logger = logging.getLogger(__name__) @@ -100,7 +100,7 @@ class DelayedTaskRunner(object): def executeOneDelayedTask(self): now = getSqlDatetime() - filt = Q(execution_time__lt=now) | Q(insert_date__gt=now) + filt = Q(execution_time__lt=now) | Q(insert_date__gt=now + timedelta(seconds=30)) # If next execution is before now or last execution is in the future (clock changed on this server, we take that task as executable) taskInstance = None try: diff --git a/server/src/uds/reports/stats/usage_by_pool.py b/server/src/uds/reports/stats/usage_by_pool.py index c68c9b561..eca219550 100644 --- a/server/src/uds/reports/stats/usage_by_pool.py +++ b/server/src/uds/reports/stats/usage_by_pool.py @@ -138,8 +138,8 @@ class UsageByPool(StatsReport): logins = {} data = [] for i in items: - if '\\' in i.fld1: - continue + # if '\\' in i.fld1: + # continue if i.event_type == events.ET_LOGIN: logins[i.fld4] = i.stamp