VietCat commited on
Commit
70d2f99
·
1 Parent(s): 7089324

update impounding

Browse files
Files changed (1) hide show
  1. app/message_processor.py +9 -0
app/message_processor.py CHANGED
@@ -294,6 +294,9 @@ class MessageProcessor:
294
  bpkpnoidung = arr_to_str(match.get('bpkpnoidung'), sep="; ")
295
  if bpkpnoidung:
296
  full_result_text += f"\nNgoài ra, người vi phạm còn bị buộc: {bpkpnoidung}"
 
 
 
297
  if top and (top.get('tieude') or top.get('noidung')):
298
  tieude = (top.get('tieude') or '').strip()
299
  noidung = (top.get('noidung') or '').strip()
@@ -313,6 +316,9 @@ class MessageProcessor:
313
  bpkpnoidung = arr_to_str(top.get('bpkpnoidung'), sep="; ")
314
  if bpkpnoidung:
315
  top_result_text += f"\nNgoài ra, người vi phạm còn bị buộc: {bpkpnoidung}"
 
 
 
316
  else:
317
  result_text = "Không có kết quả phù hợp!"
318
  prompt = (
@@ -353,6 +359,9 @@ class MessageProcessor:
353
  bpkpnoidung = arr_to_str(match.get('bpkpnoidung'), sep="; ")
354
  if bpkpnoidung:
355
  fallback += f" - Biện pháp khắc phục hậu quả: {bpkpnoidung}\n"
 
 
 
356
  fallback += "\n"
357
  return fallback.strip()
358
 
 
294
  bpkpnoidung = arr_to_str(match.get('bpkpnoidung'), sep="; ")
295
  if bpkpnoidung:
296
  full_result_text += f"\nNgoài ra, người vi phạm còn bị buộc: {bpkpnoidung}"
297
+ impounding = match.get('impounding')
298
+ if impounding:
299
+ full_result_text += f"\nTạm giữ phương tiên: 07 ngày"
300
  if top and (top.get('tieude') or top.get('noidung')):
301
  tieude = (top.get('tieude') or '').strip()
302
  noidung = (top.get('noidung') or '').strip()
 
316
  bpkpnoidung = arr_to_str(top.get('bpkpnoidung'), sep="; ")
317
  if bpkpnoidung:
318
  top_result_text += f"\nNgoài ra, người vi phạm còn bị buộc: {bpkpnoidung}"
319
+ impounding = top.get('impounding')
320
+ if impounding:
321
+ top_result_text += f"\nTạm giữ phương tiên: 07 ngày"
322
  else:
323
  result_text = "Không có kết quả phù hợp!"
324
  prompt = (
 
359
  bpkpnoidung = arr_to_str(match.get('bpkpnoidung'), sep="; ")
360
  if bpkpnoidung:
361
  fallback += f" - Biện pháp khắc phục hậu quả: {bpkpnoidung}\n"
362
+ impounding = match.get('impounding')
363
+ if impounding:
364
+ fallback += f"\nTạm giữ phương tiên: 07 ngày"
365
  fallback += "\n"
366
  return fallback.strip()
367