Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
谢林臻
sun
Commits
31d55bb0
Commit
31d55bb0
authored
Apr 16, 2019
by
王浩
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'haow/dev' into 'test'
fix topic list See merge request
alpha/sun!176
parents
49f4db76
ccfdfcaa
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
tools.py
api/tools.py
+0
-2
topic.py
api/topic.py
+1
-1
urls.py
api/urls.py
+5
-4
No files found.
api/tools.py
View file @
31d55bb0
...
...
@@ -56,10 +56,8 @@ class BatchUpdateTopicTag(APIView):
if
index
==
len
(
rows_data
)
-
1
:
topic_infos
.
append
(
topic_tag_info
)
if
item
.
startswith
(
'http:'
):
print
(
item
)
if
topic_tag_info
.
get
(
'url'
):
topic_infos
.
append
(
topic_tag_info
)
print
(
topic_tag_info
)
topic_tag_info
=
{}
topic_tag_info
[
'url'
]
=
item
.
split
(
'-'
)[
0
]
.
replace
(
'http://alpha.iyanzhi.com/'
,
''
)
...
...
api/topic.py
View file @
31d55bb0
...
...
@@ -26,7 +26,7 @@ class TopicListView(APIView):
if
int
(
drop_score
)
==
0
:
filters
.
update
({
'drop_score'
:
int
(
drop_score
)})
elif
int
(
drop_score
)
==
1
:
filters
.
update
({
'drop_score__
gt
'
:
int
(
drop_score
)})
filters
.
update
({
'drop_score__
exclude
'
:
int
(
drop_score
)})
res
=
self
.
rpc
[
'physical/search/business/topic'
](
offset
=
(
page
-
1
)
*
limit
,
...
...
api/urls.py
View file @
31d55bb0
...
...
@@ -134,16 +134,17 @@ urlpatterns = [
url
(
r'^pictorial/topics$'
,
PictorialTopics
.
as_view
()),
url
(
r'^pictorial/user/list$'
,
PictorialUserList
.
as_view
()),
# 工具
url
(
r'^tools/virtual_vote$'
,
VirtualVote
.
as_view
()),
url
(
r'^tools/batch_update_topic_tag$'
,
BatchUpdateTopicTag
.
as_view
()),
#运营位
url
(
r'^topic/home_recommend/list'
,
TopicHomeRecommendList
.
as_view
()),
url
(
r'^topic/home_recommend/edit'
,
TopicHomeRecommendEdit
.
as_view
()),
url
(
r'^operation/home_fix'
,
TopicHomeFixOperation
.
as_view
()),
url
(
r'^operation/pictorial/recommend/list'
,
PictorialHomeRecommendList
.
as_view
()),
url
(
r'^operation/pictorial/recommend/update'
,
PictorialHomeRecommendUpdate
.
as_view
()),
# 工具
url
(
r'^tools/virtual_vote$'
,
VirtualVote
.
as_view
()),
url
(
r'^tools/batch_update_topic_tag$'
,
BatchUpdateTopicTag
.
as_view
()),
]
search_urlpatterns
=
[
...
...
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