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
abc582e9
Commit
abc582e9
authored
Aug 20, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
8ff25ee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
no_reply_principal.py
vest/pictorial/no_reply_principal.py
+4
-7
No files found.
vest/pictorial/no_reply_principal.py
View file @
abc582e9
...
@@ -20,12 +20,9 @@ def get_data():
...
@@ -20,12 +20,9 @@ def get_data():
topic_id
=
list
(
data
)
topic_id
=
list
(
data
)
data_all
=
[]
data_all
=
[]
for
i
in
topic_id
:
for
i
in
topic_id
:
if
topic_id
[
0
]
<=
4
:
if
i
[
0
]
<=
4
:
cursor
.
execute
(
"select creator_id,id from community_pictorial where is_online =True and is_deleted=False and id in (select count(*),pictorial_id from reply group by pictorial_id)"
)
data_all
.
append
(
i
)
data
=
cursor
.
fetchall
()
logging
.
info
(
"Database version :
%
s "
%
topic_id
)
topic_id
=
list
(
data
)
data_all
.
append
(
topic_id
)
logging
.
info
(
"Database version :
%
s "
%
topic_id
)
return
data_all
return
data_all
except
:
except
:
...
@@ -38,7 +35,7 @@ def no_reply_principal():
...
@@ -38,7 +35,7 @@ def no_reply_principal():
logging
.
info
(
"comment offline pictorial"
)
logging
.
info
(
"comment offline pictorial"
)
user_id
=
get_data
()
user_id
=
get_data
()
for
i
in
user_id
:
for
i
in
user_id
:
follow_num
=
random
.
randint
(
5
,
20
)
follow_num
=
random
.
randint
(
1
,
5
)
for
num
in
range
(
follow_num
):
for
num
in
range
(
follow_num
):
majia_user_id
=
get_majia_reply
(
i
[
0
])
majia_user_id
=
get_majia_reply
(
i
[
0
])
cook
=
logins
(
majia_user_id
)
cook
=
logins
(
majia_user_id
)
...
...
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