Fixed an interface bug in the JSON generator (and the temp interface in the main program) where some variable types would be displayed incorrectly.
This commit is contained in:
@@ -25,7 +25,7 @@ def modify_variable(var, vars):
|
||||
response = input("Select a property to modify for %s or q to exit property modifying: " %(var.name))
|
||||
|
||||
if response == "type":
|
||||
response = input("Enter the type of variable this is (currently %s): " %(expression.Variable.get_variable_type(var.type)))
|
||||
response = input("Enter the type of variable this is (currently %s): " %(var.type))
|
||||
vars[var.name].type = response
|
||||
print("Updated to %s." %(response))
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ def modify_variable(var, vars):
|
||||
response = input("Select a property to modify for %s or q to exit property modifying: " %(var.name))
|
||||
|
||||
if response == "type":
|
||||
response = input("Enter the type of variable this is (currently %s): " %(expression.Variable.get_variable_type(var.type)))
|
||||
response = input("Enter the type of variable this is (currently %s): " %(var.type))
|
||||
vars[var.name].type = response
|
||||
print("Updated to %s." %(response))
|
||||
|
||||
@@ -74,7 +74,7 @@ rev_tokens = copy.deepcopy(tokens)
|
||||
|
||||
for t in rev_tokens:
|
||||
if t.type == token.TokenType.variable:
|
||||
variables[t.value] = expression.Variable(t.value, expression.Variable.get_variable_type(t.value))
|
||||
variables[t.value] = expression.Variable(t.value, expression.Variable.get_variable_type(t.value[0]))
|
||||
|
||||
selected_variable = None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user