fixed check
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-01-03 19:43:12 +01:00
parent ed600bae22
commit 78817a9193

View File

@@ -20,7 +20,7 @@ def main():
allinfo += check(user, pwd)
if 'HEALTHCHECK_URL' in os.environ:
requests.post(f"{os.environ['HEALTHCHECK_URL']}/start", data='\n'.join(allinfo).encode('utf8'))
if os.environ['RUN_FOREVER'] == 'False':
if 'RUN_FOREVER' in os.environ and os.environ['RUN_FOREVER'] == 'False':
break
now = datetime.datetime.utcnow