move math function inside the sql statement

This commit is contained in:
mickael
2019-01-07 21:11:08 +00:00
parent f47745c8d6
commit aeff09d2b3
3 changed files with 12 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ _loaded = False
def load():
if _loaded: return
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after, use_ssl
global database, maxfail, search, torhosts, watchd_threads, checktime, timeout, read_timeout, submit_after, use_ssl, checktime, perfail_checktime
## read the config files
parser = SafeConfigParser()
@@ -22,6 +22,9 @@ def load():
use_ssl = parser.getboolean('watcherd', 'use_ssl')
global watchd_debug
watchd_debug = parser.getboolean('watcherd', 'debug')
#url_maxfail = parser.get('proxyfind', 'maxfail')
checktime = parser.get('proxyfind', 'checktime')
perfail_checktime = parser.get('proxyfind', 'perfail_checktime')
# allow overriding select items from the commandline
import argparse