VyLala commited on
Commit
545455f
·
verified ·
1 Parent(s): a7eaca0

Update standardize_location.py

Browse files
Files changed (1) hide show
  1. standardize_location.py +2 -1
standardize_location.py CHANGED
@@ -1,6 +1,6 @@
1
  import requests
2
  import re
3
-
4
  # Normalize input
5
  def normalize_key(text):
6
  return re.sub(r"[^a-z0-9]", "", text.strip().lower())
@@ -69,6 +69,7 @@ def smart_country_lookup(user_input):
69
  print("get_country_from_countryinfo(raw_input) ", country)
70
  if country:
71
  return country
 
72
  country = get_country_from_countryinfo(raw_input) # try full names
73
  print("get_country_from_countryinfo(raw_input) ", country)
74
  if country:
 
1
  import requests
2
  import re
3
+ import os
4
  # Normalize input
5
  def normalize_key(text):
6
  return re.sub(r"[^a-z0-9]", "", text.strip().lower())
 
69
  print("get_country_from_countryinfo(raw_input) ", country)
70
  if country:
71
  return country
72
+ print(raw_input)
73
  country = get_country_from_countryinfo(raw_input) # try full names
74
  print("get_country_from_countryinfo(raw_input) ", country)
75
  if country: