Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
andmat900 committed Oct 4, 2024
1 parent 7fc7db8 commit b46b6eb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion python/src/etos_api/library/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit b46b6eb

Please sign in to comment.