jonathanjordan21 commited on
Commit
3ffd2dc
·
verified ·
1 Parent(s): 5150702

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -240,6 +240,7 @@ def build_output(result, description, result_detail, plate_number):
240
 
241
  def build_outputs(results, descriptions, result_details, plate_number):
242
  vehicle = vehicle_tax_info.get(plate_number)
 
243
 
244
  out = "----------------------------------------------------\n\n"
245
  out = "Nomor Polisi: " + plate_number + "\n"
@@ -250,7 +251,7 @@ def build_outputs(results, descriptions, result_details, plate_number):
250
  out += "\n\nDaftar Kode Permohonan:\n"
251
 
252
  for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
253
- harga_jual = "{:,}".format(vehicle.get("harga_jual"))
254
  out += f"{i+1}. {detail}\nRumus: {desc}\nDetail perhitungan: {desc.replace('harga_jual', harga_jual)} = {res}\n"
255
 
256
  # out += "----------------------------\nEstimasi biaya: "
 
240
 
241
  def build_outputs(results, descriptions, result_details, plate_number):
242
  vehicle = vehicle_tax_info.get(plate_number)
243
+ vehicle["harga_jual"] = "{:,}".format(vehicle["harga_jual"])
244
 
245
  out = "----------------------------------------------------\n\n"
246
  out = "Nomor Polisi: " + plate_number + "\n"
 
251
  out += "\n\nDaftar Kode Permohonan:\n"
252
 
253
  for i, (res,desc,detail) in enumerate(zip(results, descriptions, result_details)):
254
+ harga_jual = vehicle["harga_jual"]
255
  out += f"{i+1}. {detail}\nRumus: {desc}\nDetail perhitungan: {desc.replace('harga_jual', harga_jual)} = {res}\n"
256
 
257
  # out += "----------------------------\nEstimasi biaya: "