aboutsummaryrefslogtreecommitdiff
path: root/compile_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'compile_api.py')
-rw-r--r--compile_api.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/compile_api.py b/compile_api.py
index 019df74..bea1de5 100644
--- a/compile_api.py
+++ b/compile_api.py
@@ -46,12 +46,10 @@ def parse_execute_response(response: dict) -> ExecuteResponse:
async def execute(code: str, language: Union[str, int]) -> ExecuteResponse:
async with aiohttp.ClientSession() as session:
- print(code)
- print(language)
- response = await session.post(EXECUTE_ENDPOINT, data=get_parameters(
+ response = await session.get(EXECUTE_ENDPOINT, data=get_parameters(
Program=code,
LanguageChoice=language,
Input="",
CompilerArgs="",
))
- return parse_execute_response(await response.json())
+ return parse_execute_response(await response.json(content_type=None))