Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
physical
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
alpha
physical
Commits
19f84959
Commit
19f84959
authored
Feb 27, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'linUCB' into 'master'
modify See merge request
!129
parents
9a8a58c3
f238f2e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
linucb.py
linucb/views/linucb.py
+2
-2
No files found.
linucb/views/linucb.py
View file @
19f84959
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment