SCCapstone / Swearengineers

Math Quizzes
https://math-quizzes-sc.appspot.com
Apache License 2.0
0 stars 0 forks source link

Crashes when teacher tries to take his own quiz #78

Closed josemvidal closed 7 years ago

josemvidal commented 7 years ago

screenflow

internal_server_error
jeSager commented 7 years ago

This is probably due to #67

Meaning the error has to do with the solutions or answers you have chosen.

parsonsbatsc commented 7 years ago

I had this problem when I spaced the answer differently, and the original was in LaTeX and the answer was not.

parsonsbatsc commented 7 years ago

It seems to dislike the "=" symbol. If the answer contains =, it throws an "invalid syntax" exception.

jeSager commented 7 years ago

FIX Part 1:

Python Try / Catch now marks incomparable strings wrong for the teacher to edit later.

Code

trycatch



Example 1:

powers



Example 2 (same quiz):

powers2





FIX Part 2:

Neither interface allows invalid characters

Blocked with JS

This code prevents saving until the characters are removed

Blocked any character that allows sympy to crash the app

js




Example from the Create Problem Interface:

cpjs




Example from the Quiz Interface

invalidq