Trying to cheat

This commit is contained in:
alesapin 2021-11-09 16:09:34 +03:00
parent 2cfa97782c
commit 829dcc9a56

View File

@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-
import requests
import time
class Query:
@ -365,6 +366,10 @@ class Query:
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
# sleep a little, because we querying github too often
print("Request, is mutation", is_mutation)
time.sleep(0.5)
def requests_retry_session(
retries=5,
backoff_factor=0.5,