TIME_BETWEEN_REQUESTS as env var

This commit is contained in:
norohind 2021-11-08 17:48:49 +03:00
parent 32257525d9
commit c3dd483e23
Signed by: norohind
GPG Key ID: 01C3BECC26FB59E1

View File

@ -54,7 +54,8 @@ def proxied_request(url: str, method: str = 'get', **kwargs) -> requests.Respons
global PROXIES_DICT
TIME_BETWEEN_REQUESTS: float = 3.0
TIME_BETWEEN_REQUESTS: float = float(os.getenv("JUBILANT_TIME_BETWEEN_REQUESTS")) or 3.0
logger.debug(f'TIME_BETWEEN_REQUESTS = {TIME_BETWEEN_REQUESTS} {type(TIME_BETWEEN_REQUESTS)}')
while True: