DmitrMakeev commited on
Commit
12e6413
·
verified ·
1 Parent(s): d5d255b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -966,7 +966,9 @@ def handle_calculation():
966
 
967
  # Выполнение расчета
968
  results = calculator.calculate()
969
- return jsonify(results)
 
 
970
 
971
  except Exception as e:
972
  return jsonify({'error': str(e)}), 500
@@ -981,7 +983,6 @@ def handle_calculation():
981
 
982
 
983
 
984
-
985
 
986
 
987
  if __name__ == '__main__':
 
966
 
967
  # Выполнение расчета
968
  results = calculator.calculate()
969
+
970
+ # Возвращение результатов в нужном формате
971
+ return jsonify({"results": results})
972
 
973
  except Exception as e:
974
  return jsonify({'error': str(e)}), 500
 
983
 
984
 
985
 
 
986
 
987
 
988
  if __name__ == '__main__':