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
钟尚武
physical
Commits
abe09afb
Commit
abe09afb
authored
Apr 26, 2019
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
c6686a11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tag.py
search/views/tag.py
+3
-3
No files found.
search/views/tag.py
View file @
abe09afb
...
@@ -155,7 +155,7 @@ def choice_push_tag(device_id, user_id):
...
@@ -155,7 +155,7 @@ def choice_push_tag(device_id, user_id):
@bind
(
"physical/search/identity_tag_name"
)
@bind
(
"physical/search/identity_tag_name"
)
def
identity_tag_name
(
topic_content
):
def
identity_tag_name
(
topic_content
):
try
:
try
:
ret_tag_
list
=
lis
t
()
ret_tag_
set
=
se
t
()
redis_key_name
=
"physical:tag_name_set"
redis_key_name
=
"physical:tag_name_set"
body
=
{
body
=
{
...
@@ -171,9 +171,9 @@ def identity_tag_name(topic_content):
...
@@ -171,9 +171,9 @@ def identity_tag_name(topic_content):
token_word
=
item
[
"token"
]
token_word
=
item
[
"token"
]
is_member
=
redis_client
.
sismember
(
redis_key_name
,
token_word
)
is_member
=
redis_client
.
sismember
(
redis_key_name
,
token_word
)
if
is_member
:
if
is_member
:
ret_tag_
list
.
appen
d
(
token_word
)
ret_tag_
set
.
ad
d
(
token_word
)
return
{
"tag_name_list"
:
ret_tag_list
}
return
{
"tag_name_list"
:
list
(
ret_tag_set
)
}
except
:
except
:
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,err_msg:
%
s"
%
traceback
.
format_exc
())
return
{
"tag_name_list"
:
[]}
return
{
"tag_name_list"
:
[]}
...
...
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