mirror of
https://github.com/dkmstr/openuds.git
synced 2024-12-22 13:34:04 +03:00
Fixed security check
This commit is contained in:
parent
1ff09a1a04
commit
6eb5a7ccc8
@ -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:
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user