Commit 19f84959 authored by 段英荣's avatar 段英荣

Merge branch 'linUCB' into 'master'

modify

See merge request !129
parents 9a8a58c3 f238f2e2
...@@ -21,7 +21,7 @@ class LinUCB: ...@@ -21,7 +21,7 @@ class LinUCB:
try: try:
if len(cls.default_tag_list) == 0: 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: for item in query_item_results:
cls.default_tag_list.append(item.id) cls.default_tag_list.append(item.id)
...@@ -85,7 +85,7 @@ class LinUCB: ...@@ -85,7 +85,7 @@ class LinUCB:
return True return True
except: except:
logging.error("init_device_id_linucb_info error!") logging.error("catch exception,err_msg:%s" % traceback.format_exc())
return False return False
@classmethod @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