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
e9f485d8
Commit
e9f485d8
authored
Aug 22, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
1caa6669
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
principal_online_comment1.py
vest/pictorial/principal_online_comment1.py
+2
-2
auto_request.py
vest/request/auto_request.py
+2
-2
No files found.
vest/pictorial/principal_online_comment1.py
View file @
e9f485d8
...
@@ -80,8 +80,8 @@ def principal_online_comment1():
...
@@ -80,8 +80,8 @@ def principal_online_comment1():
# 判断是不是编辑标签
# 判断是不是编辑标签
edit_judge
=
get_pictorial_tag_by_id
(
i
[
0
])
edit_judge
=
get_pictorial_tag_by_id
(
i
[
0
])
if
edit_judge
:
if
edit_judge
:
rand_tag_id
=
random
.
randint
(
0
,
len
(
edit_judge
)
-
1
)
#
rand_tag_id = random.randint(0, len(edit_judge) - 1)
comment
=
get_pictorial_comment
(
)
comment
=
judge_pictorial_info_get_comment
(
edit_judge
)
else
:
else
:
comment
=
get_pictorial_comment
()
comment
=
get_pictorial_comment
()
if
cook
is
not
None
:
if
cook
is
not
None
:
...
...
vest/request/auto_request.py
View file @
e9f485d8
...
@@ -591,11 +591,11 @@ def judge_topic_info_get_comment(topic_id):
...
@@ -591,11 +591,11 @@ def judge_topic_info_get_comment(topic_id):
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
logging
.
error
(
"catch exception,logins:
%
s"
%
traceback
.
format_exc
())
return
None
return
None
def
judge_pictorial_info_get_comment
(
topic
_id
):
def
judge_pictorial_info_get_comment
(
pictorial
_id
):
try
:
try
:
comment
=
""
comment
=
""
# 先判断是不是编辑标签
# 先判断是不是编辑标签
edit_tag_list
=
get_pictorial_tag_by_id
(
topic
_id
)
edit_tag_list
=
get_pictorial_tag_by_id
(
pictorial
_id
)
if
len
(
edit_tag_list
)
>
0
:
if
len
(
edit_tag_list
)
>
0
:
# 如果有编辑标签
# 如果有编辑标签
# 去拿他的所属分类 根据分类去拿对应的标签(随机拿一个)
# 去拿他的所属分类 根据分类去拿对应的标签(随机拿一个)
...
...
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