minor fix in filter object handling
This commit is contained in:
parent
993d542610
commit
1f6487237a
|
@ -12,9 +12,9 @@ import logging
|
||||||
import threading
|
import threading
|
||||||
import os
|
import os
|
||||||
|
|
||||||
#log = logging.getLogger('werkzeug')
|
log = logging.getLogger('werkzeug')
|
||||||
#log.setLevel(logging.ERROR)
|
log.setLevel(logging.ERROR)
|
||||||
#log.disabled = True
|
log.disabled = True
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ def nmtid(id):
|
||||||
@app.route('/ids')
|
@app.route('/ids')
|
||||||
def ids():
|
def ids():
|
||||||
l = filter(idIsRecent,list(valuestore.keys()))
|
l = filter(idIsRecent,list(valuestore.keys()))
|
||||||
return ','.join(map(str,l))
|
return ','.join(map(str,list(l)))
|
||||||
|
|
||||||
def createDriver():
|
def createDriver():
|
||||||
options = webdriver.ChromeOptions()
|
options = webdriver.ChromeOptions()
|
||||||
|
@ -138,9 +138,13 @@ if __name__ == '__main__':
|
||||||
del d1
|
del d1
|
||||||
print ("Failover Driver deleted")
|
print ("Failover Driver deleted")
|
||||||
lastaccess = datetime.now(timezone.utc)
|
lastaccess = datetime.now(timezone.utc)
|
||||||
|
|
||||||
l = filter(idIsRecent,list(valuestore.keys()))
|
l = filter(idIsRecent,list(valuestore.keys()))
|
||||||
if len(l) < 1:
|
if len(list(l)) < 1:
|
||||||
restartWait = timedelta(seconds=60)
|
restartWait = timedelta(seconds=60)
|
||||||
|
else:
|
||||||
|
restartWait = timedelta(hours=4)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue