bwornom7 / open-contest

Open-source programming contest management system written in Python, pioneering some novel techniques in web design
https://contests-dev.nathantheinventor.com
Apache License 2.0
1 stars 0 forks source link

Support Large Output #8

Closed bwornom7 closed 5 years ago

bwornom7 commented 5 years ago

The system currently imposes a limit on the amount of output that a solution may generate. Since some problems may require large amounts of output, implement the following:

Define two named constants in the code: MAX_OUTPUT_LENGTH and MAX_OUTPUT_DISPLAY_LENGTH. MAX_OUTPUT_LENGTH is the maximum amount of output that a submission may generate. Output larger than this will be truncated and not stored. MAX_OUTPUT_DISPLAY_LENGTH is the maximum amount of output that will be displayed in the web interface Modify that code that manages the Submission objects to store only MAX_OUTPUT_DISPLAY_LENGTH amount of data in the Submission object's outputs instance variable. Append the value "... additional data not displayed ..." at the end if the amount of data exceeds MAX_OUTPUT_DISPLAY_LENGTH.