Spaces:
Sleeping
Sleeping
jonathanjordan21
commited on
Update app.py
Browse files
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(":",
|
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 |
-
|
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)
|