From 29e4912a956e362593fea022ca0897a731e0b782 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 1 Jun 2025 13:59:17 +0300 Subject: [PATCH] fix --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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", )