jonathanjordan21 commited on
Commit
903bb5e
·
verified ·
1 Parent(s): b449aa4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -192,7 +192,7 @@ def get_calculation(request_code, plate_number):
192
  harga_jual = vehicle.get("harga_jual")
193
  formula = calc.get("formula")
194
  result = formula(harga_jual)
195
- description = inspect.getsource(formula).split(":", 1)[-1].strip()
196
  result_detail = request_code + " - " + calc.get("name")
197
 
198
  # out = "=============================================="
@@ -275,7 +275,7 @@ def respond(
275
  request_details.append(undetected[6:])
276
  request_numbers.append(undetected_code)
277
 
278
- request_number_copy = request_numbers
279
 
280
  request_numbers = "\n".join(request_numbers)
281
  request_details = "\n".join(request_details)
 
192
  harga_jual = vehicle.get("harga_jual")
193
  formula = calc.get("formula")
194
  result = formula(harga_jual)
195
+ description = inspect.getsource(formula).split(":", 2)[-1].strip()
196
  result_detail = request_code + " - " + calc.get("name")
197
 
198
  # out = "=============================================="
 
275
  request_details.append(undetected[6:])
276
  request_numbers.append(undetected_code)
277
 
278
+ request_numbers_copy = request_numbers
279
 
280
  request_numbers = "\n".join(request_numbers)
281
  request_details = "\n".join(request_details)