Changed the JSON generator to generate JSON that includes the correct answer for the expression.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
class Expression:
|
||||
expression = ""
|
||||
correct_answer = 0
|
||||
variables = []
|
||||
|
||||
def __init__(self, expression_string, variables):
|
||||
def __init__(self, expression_string, variables, correct):
|
||||
self.expression = expression_string
|
||||
self.variables = variables
|
||||
self.correct_answer = correct
|
||||
|
||||
class Variable:
|
||||
VARIABLE_TYPES = {
|
||||
|
||||
Reference in New Issue
Block a user