aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorromangraef <romangraef@loves.dicksinhisan.us>2018-11-14 16:09:01 +0100
committerromangraef <romangraef@loves.dicksinhisan.us>2018-11-14 16:09:01 +0100
commit9539aa6c86ec7e37e7e78d5b048f04899c0b658c (patch)
tree48182b8729d3b721f2e7a318a1df8dd6050e4f35
parentdbde5c34a71157707e82bc52b0c671d7dadc741a (diff)
downloadevalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.tar.gz
evalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.tar.bz2
evalbot-9539aa6c86ec7e37e7e78d5b048f04899c0b658c.zip
fixed api weirdness
-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))