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
81b631c6
Commit
81b631c6
authored
Oct 14, 2019
by
吴升宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix auto click
parent
12d07f1f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
auto_click_per_1d_by_post.py
vest/click/auto_click_per_1d_by_post.py
+3
-3
auto_click_per_2h_by_post.py
vest/click/auto_click_per_2h_by_post.py
+2
-2
No files found.
vest/click/auto_click_per_1d_by_post.py
View file @
81b631c6
...
@@ -17,10 +17,10 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
...
@@ -17,10 +17,10 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
cursor
.
execute
(
cursor
.
execute
(
"select t.id from topic t left join user_extra u on t.user_id = u.user_id "
"select t.id from topic t left join user_extra u on t.user_id = u.user_id "
"where u.is_shadow=0 and t.create_time > '
%
s' and t.create_time < '
%
s' "
"where u.is_shadow=0 and t.create_time > '
%
s' and t.create_time < '
%
s'
and is_online=1
"
"and t.content_level >=
%
s and t.content_level <=
%
s "
%
(
numtime
,
numtime2
,
str
(
content_level_low
),
str
(
content_level_top
)))
"and t.content_level >=
%
s and t.content_level <=
%
s "
%
(
numtime
,
numtime2
,
str
(
content_level_low
),
str
(
content_level_top
)))
res
=
cursor
.
fetch
all
()
res
=
cursor
.
fetch
one
()
for
i
,
in
res
:
for
i
,
in
res
:
cursor
.
execute
(
cursor
.
execute
(
...
@@ -108,7 +108,7 @@ def auto_click_per_1d_by_post():
...
@@ -108,7 +108,7 @@ def auto_click_per_1d_by_post():
print
(
'auto_click_per_1d_by_post: len
%
s'
%
len
(
auto_click_list
))
print
(
'auto_click_per_1d_by_post: len
%
s'
%
len
(
auto_click_list
))
total
=
len
(
auto_click_list
)
total
=
len
(
auto_click_list
)
limit
=
(
total
+
10
)
//
1
0
limit
=
(
total
+
30
)
//
3
0
for
start
in
range
(
0
,
total
,
limit
):
for
start
in
range
(
0
,
total
,
limit
):
batch
=
auto_click_list
[
start
:
start
+
limit
]
batch
=
auto_click_list
[
start
:
start
+
limit
]
t
=
Thread
(
target
=
batch_handle
,
args
=
[
batch
])
t
=
Thread
(
target
=
batch_handle
,
args
=
[
batch
])
...
...
vest/click/auto_click_per_2h_by_post.py
View file @
81b631c6
...
@@ -18,10 +18,10 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
...
@@ -18,10 +18,10 @@ def get_commnet_id(numtime, numtime2, content_level_low=0, content_level_top=6):
cursor
.
execute
(
cursor
.
execute
(
"select t.id from topic t left join user_extra u on t.user_id = u.user_id "
"select t.id from topic t left join user_extra u on t.user_id = u.user_id "
"where u.is_shadow=0 and t.create_time > '
%
s' and t.create_time < '
%
s' "
"where u.is_shadow=0 and t.create_time > '
%
s' and t.create_time < '
%
s'
and is_online=1
"
"and t.content_level >=
%
s and t.content_level <=
%
s "
%
(
numtime
,
numtime2
,
str
(
content_level_low
),
str
(
content_level_top
)))
"and t.content_level >=
%
s and t.content_level <=
%
s "
%
(
numtime
,
numtime2
,
str
(
content_level_low
),
str
(
content_level_top
)))
res
=
cursor
.
fetch
all
()
res
=
cursor
.
fetch
one
()
for
i
,
in
res
:
for
i
,
in
res
:
cursor
.
execute
(
cursor
.
execute
(
...
...
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