From 49c3cd34c9c40ace301dd00bae4f1471098cada2 Mon Sep 17 00:00:00 2001 From: Uchechukwu Orji Date: Sat, 29 Jun 2024 15:01:24 +0100 Subject: [PATCH] use less than comparsion in auth token expires_in --- worker/manager/src/mirrors_qa_manager/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker/manager/src/mirrors_qa_manager/worker.py b/worker/manager/src/mirrors_qa_manager/worker.py index 873f4fc..5dbc22e 100644 --- a/worker/manager/src/mirrors_qa_manager/worker.py +++ b/worker/manager/src/mirrors_qa_manager/worker.py @@ -199,7 +199,7 @@ def query_api( if self.auth_credentials is None: self.auth_credentials = authenticate(self.private_key, self.worker_id) - if self.auth_credentials.expires_in > datetime.datetime.now(): + if self.auth_credentials.expires_in < datetime.datetime.now(): self.auth_credentials = authenticate(self.private_key, self.worker_id) req_headers = {