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
9691650a
Commit
9691650a
authored
Aug 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sentry' into test
parents
cfe908b2
f0a1aadd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
9 deletions
+6
-9
one_seven_star_topic.py
vest/click/one_seven_star_topic.py
+3
-5
one_seven_topic_comment.py
vest/reply/one_seven_topic_comment.py
+3
-4
No files found.
vest/click/one_seven_star_topic.py
View file @
9691650a
...
@@ -2,10 +2,9 @@ import time
...
@@ -2,10 +2,9 @@ import time
import
pymysql
import
pymysql
import
random
import
random
import
traceback
import
traceback
from
log_settings
import
*
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_convs
from
vest.request.
auto_request
import
login
,
click
,
time_convs
from
auto_request
import
host
,
user
,
db
,
passwd
from
vest.request.
auto_request
import
host
,
user
,
db
,
passwd
def
get_data
(
numtime
,
numtime2
):
def
get_data
(
numtime
,
numtime2
):
...
@@ -35,9 +34,8 @@ def get_data(numtime, numtime2):
...
@@ -35,9 +34,8 @@ def get_data(numtime, numtime2):
def
one_seven_star_topic
():
def
one_seven_star_topic
():
try
:
try
:
numtime
,
numtime2
=
time_convs
(
1
,
7
)
numtime
,
numtime2
=
time_convs
(
7
,
1
)
user_id
=
get_data
(
numtime
,
numtime2
)
user_id
=
get_data
(
numtime
,
numtime2
)
dicts
=
{}
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
for
i
in
user_id
:
for
i
in
user_id
:
rand_num
=
random
.
randint
(
0
,
1
)
rand_num
=
random
.
randint
(
0
,
1
)
...
...
vest/reply/one_seven_topic_comment.py
View file @
9691650a
...
@@ -2,10 +2,9 @@ import time
...
@@ -2,10 +2,9 @@ import time
import
pymysql
import
pymysql
import
random
import
random
import
traceback
import
traceback
from
log_settings
import
*
import
logging
import
logging
from
auto_request
import
login
,
click
,
time_convs
from
vest.request.
auto_request
import
login
,
click
,
time_convs
from
auto_request
import
host
,
user
,
db
,
passwd
from
vest.request.
auto_request
import
host
,
user
,
db
,
passwd
def
get_data
(
numtime
,
numtime2
):
def
get_data
(
numtime
,
numtime2
):
...
@@ -35,7 +34,7 @@ def get_data(numtime, numtime2):
...
@@ -35,7 +34,7 @@ def get_data(numtime, numtime2):
def
one_seven_topic_comment
():
def
one_seven_topic_comment
():
try
:
try
:
numtime
,
numtime2
=
time_convs
(
1
,
7
)
numtime
,
numtime2
=
time_convs
(
7
,
1
)
user_id
=
get_data
(
numtime
,
numtime2
)
user_id
=
get_data
(
numtime
,
numtime2
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
for
i
in
user_id
:
for
i
in
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