virtual-labs-archive / problem-solving-iiith

Other
4 stars 437 forks source link

Code compilation result pages broken #1213

Open ojas1 opened 4 years ago

ojas1 commented 4 years ago

The submission*.html files are generated by submitting code for compilation from lab.html page. These pages are not being rendered as expected and do not function.

ojas1 commented 4 years ago

Cause

A submission file is generated by src/lab/exp[n]/judge.py for each experiment. This script uses multiple partial HTML snippets that are stored in separate HTML files prefixed by content. Example: content1.html, content1_1.html etc. The analytics script assumes that each html file it is applied to is a complete html file and when it finds an incomplete html file it automatically completes the structure. This results in changing the structure of content files which are supposed to be incomplete.

Solution

Ignore content files while applying analytics to HTML files.

ojas1 commented 4 years ago

fixed in v1.1.3