fix: linter

This commit is contained in:
Anmol Singh
2023-02-26 02:33:00 +05:30
parent 76fa3a61c9
commit 01fa5beabc

View File

@@ -251,7 +251,9 @@ class DownloadManager:
:return: Response JSON dictionary.
"""
headers = {"Authorization": f"Bearer {EM.GH_TOKEN if not kwargs.get('use_github_action', False) else EM.CURRENT_GITHUB_ACTION_TOKEN}"}
res = await DownloadManager._client.post("https://api.github.com/graphql", json={"query": Template(GITHUB_API_QUERIES[query]).substitute(kwargs)}, headers=headers)
res = await DownloadManager._client.post("https://api.github.com/graphql",
json={"query": Template(GITHUB_API_QUERIES[query]).substitute(kwargs)},
headers=headers)
if res.status_code == 200:
return res.json()
else: