Critical fix
This commit is contained in:
parent
1cd9fc859f
commit
a1c5e8ab1f
@ -195,7 +195,7 @@ class Scraper:
|
|||||||
|
|
||||||
def api_request(self, method: str, params):
|
def api_request(self, method: str, params):
|
||||||
"""Make a request to Codeforces API with ``params``"""
|
"""Make a request to Codeforces API with ``params``"""
|
||||||
resp = self.get(f'api/{method}')
|
resp = self.get(f'api/{method}', params=params)
|
||||||
try:
|
try:
|
||||||
response = resp.json()
|
response = resp.json()
|
||||||
except ValueError:
|
except ValueError:
|
||||||
|
Loading…
Reference in New Issue
Block a user