Commit c1824411 authored by 赵威's avatar 赵威

update sql

parent 26250a54
...@@ -39,7 +39,7 @@ keywords = [ ...@@ -39,7 +39,7 @@ keywords = [
def get_all_city_id(): def get_all_city_id():
sql = "select distinct tag_id from api_city" sql = "select distinct tag_id from api_city"
mysql_results = get_data_by_mysql("172.16.30.141", 3306, "work", "BJQaT9VzDcuPBqkd", "zhengxing", sql) mysql_results = get_data_by_mysql("172.16.30.141", 3306, "zx_str", "ZXueX58pStrage", "zhengxing", sql)
city_tag_ids = [i["tag_id"] for i in mysql_results] city_tag_ids = [i["tag_id"] for i in mysql_results]
city_tag_ids.append(-1) # 没有城市的情况 city_tag_ids.append(-1) # 没有城市的情况
return city_tag_ids return city_tag_ids
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment