QIDNLF commited on
Commit
f7b9851
·
verified ·
1 Parent(s): ce9eaa9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -427,7 +427,8 @@ def execute_unified_search(base_std, base_ver, base_cat, comp_std, comp_ver, com
427
 
428
  def clean_key_val(v):
429
  s = str(v).strip()
430
- if s.endswith('.0'): s = s[:-2]
 
431
  return s.replace(" ", "")
432
 
433
  df_base['merge_key'] = df_base[real_anchors_b].apply(lambda row: '-'.join([clean_key_val(x) for x in row]), axis=1)
 
427
 
428
  def clean_key_val(v):
429
  s = str(v).strip()
430
+ if s.endswith('.0') and s[:-2].isdigit():
431
+ s = s[:-2]
432
  return s.replace(" ", "")
433
 
434
  df_base['merge_key'] = df_base[real_anchors_b].apply(lambda row: '-'.join([clean_key_val(x) for x in row]), axis=1)