Skip to content

Commit f4408a6

Browse files
committed
Fix GitHub handler to use async
1 parent 84c3c34 commit f4408a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

oshminer/GitHub.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
# SPDX-FileCopyrightText: 2022 Pen-Yuan Hsing
44
# SPDX-License-Identifier: AGPL-3.0-or-later
55

6-
def make_GitHub_request(url: str, data: list) -> str:
6+
async def make_GitHub_request(url: str, data: list) -> dict:
77
print(f"Constructing an API request to GitHub for repository {url} for the following data {data}")
88

99
# Create a dictionary to hold results from GitHub API query
1010
results: dict = {
1111
"repository": str(url),
12-
"platform": "Wikifactory",
12+
"platform": "GitHub",
1313
"requested_data": {}
1414
}
1515

0 commit comments

Comments
 (0)