fix location integration with ruby script
This commit is contained in:
parent
8e22119de9
commit
34adf748ed
|
|
@ -247,19 +247,19 @@ def get_ruby_data():
|
||||||
|
|
||||||
ruby_params = {}
|
ruby_params = {}
|
||||||
|
|
||||||
if mysql_city.country_code is not None:
|
if mysql_city.country_code:
|
||||||
ruby_params['country_code'] = mysql_city.country_code
|
ruby_params['country_code'] = mysql_city.country_code
|
||||||
|
|
||||||
if mysql_city.country_code_2 is not None:
|
if mysql_city.country_code_2:
|
||||||
ruby_params['country_code_2'] = mysql_city.country_code_2
|
ruby_params['country_code_2'] = mysql_city.country_code_2
|
||||||
|
|
||||||
if mysql_city.region_code is not None:
|
if mysql_city.region_code:
|
||||||
ruby_params['region_code'] = mysql_city.region_code
|
ruby_params['region_code'] = mysql_city.region_code
|
||||||
|
|
||||||
if mysql_city.subregion_code is not None:
|
if mysql_city.subregion_code:
|
||||||
ruby_params['subregion_code'] = mysql_city.subregion_code
|
ruby_params['subregion_code'] = mysql_city.subregion_code
|
||||||
|
|
||||||
ruby_response = get_ruby_socket(ruby_params)
|
ruby_response = get_ruby_socket(ruby_params) if ruby_params else None
|
||||||
|
|
||||||
if ruby_response is None:
|
if ruby_response is None:
|
||||||
continue
|
continue
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user