diff options
author | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-14 16:09:01 +0100 |
---|---|---|
committer | romangraef <romangraef@loves.dicksinhisan.us> | 2018-11-14 16:09:01 +0100 |
commit | 9539aa6c86ec7e37e7e78d5b048f04899c0b658c (patch) | |
tree | 48182b8729d3b721f2e7a318a1df8dd6050e4f35 | |
parent | dbde5c34a71157707e82bc52b0c671d7dadc741a (diff) | |
download | evalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.tar.gz evalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.tar.bz2 evalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.zip |
fixed api weirdness
-rw-r--r-- | compile_api.py | 6 |
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)) |