Commit f238f2e2 authored by 段英荣's avatar 段英荣

modify

parent 141ee133
......@@ -21,7 +21,7 @@ class LinUCB:
try:
if len(cls.default_tag_list) == 0:
query_item_results = Tag.objects.query(is_online=True)
query_item_results = Tag.objects.filter(is_online=True)
for item in query_item_results:
cls.default_tag_list.append(item.id)
......@@ -85,7 +85,7 @@ class LinUCB:
return True
except:
logging.error("init_device_id_linucb_info error!")
logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return False
@classmethod
......
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