Commit 632f759f authored by 赵威's avatar 赵威

get data from db

parent c7ed5c29
......@@ -54,4 +54,10 @@ def get_device_click_tractate_ids():
def get_all_business_tags():
sql = "select name from api_tag where tag_type+0<'4'+0 and is_online = 1"
data = get_data_from_zhengxing(sql)
print(data)
res = []
if data:
for i in data:
tag = i.get("name", "")
if tag:
res.append(tag)
return res
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