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