diff --git a/main.py b/main.py index fac52d2..e67f6a3 100644 --- a/main.py +++ b/main.py @@ -37,7 +37,7 @@ while True: now = datetime.datetime.now() mongo_hosts = mongo.hosts for host in get_hosts(): - if now() + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]: + if now + datetime.timedelta(days=14) > mongo_hosts[host]["expire_time"]: update_host(host) print(f"Host {host} updated") minio.put_object("certupdater", "nginx.conf", )