From b46b6ebe5eb00160383e7888e8aa6011b20512a9 Mon Sep 17 00:00:00 2001 From: Andrei Matveyeu Date: Fri, 4 Oct 2024 12:05:20 +0200 Subject: [PATCH] minor fix --- python/src/etos_api/library/validator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/python/src/etos_api/library/validator.py b/python/src/etos_api/library/validator.py index 667b35b..8bba4ea 100644 --- a/python/src/etos_api/library/validator.py +++ b/python/src/etos_api/library/validator.py @@ -97,7 +97,10 @@ def is_test_runner_valid(cls, test_runner: str) -> bool: timestamp = cls.get_timestamp(test_runner) if timestamp is None: return False - return (timestamp + cls.TESTRUNNER_VALIDATION_WINDOW) > time.time() + if (timestamp + cls.TESTRUNNER_VALIDATION_WINDOW) > time.time(): + return True + cls.remove(test_runner) + return False class Environment(BaseModel):