The post method now uses async def, since the tornado.web.asynchronous decorator is deprecated.
Uses NamedTemporaryFile to create a temp file rather than manually looping (and potentially being susceptible to a race condition and/or security threat, as unlikely as those may be).
I added a draft of a requirements.txt file for the server.
Disclaimer: I was not able to test this with the actual grading script since I don't yet have access to it.
This PR has three changes:
async def
, since thetornado.web.asynchronous
decorator is deprecated.requirements.txt
file for the server.Disclaimer: I was not able to test this with the actual grading script since I don't yet have access to it.