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:
2020-04-20 02:48:52 -05:00
parent 53f3058194
commit 57b2a236a3
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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