Browse Source

refactoring: simplified by removing unnecessary variable, added line at end of file

remotes/origin/feature/feature-read-math-functions
fdai7763 11 months ago
parent
commit
295ef2bfd7
  1. 3
      src/main/py/read_math_function.py

3
src/main/py/read_math_function.py

@ -14,7 +14,6 @@ def is_allowed_string(type, value):
def calculate_string(string):
try:
result = eval(string)
return result
return eval(string)
except Exception as e:
return f"Fehler bei der Berechnung: {str(e)}"
Loading…
Cancel
Save