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
d385bd59
Commit
d385bd59
authored
Aug 12, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
is_shadow
parent
f90aca94
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
71 additions
and
86 deletions
+71
-86
true_click_five.py
vest/click/true_click_five.py
+3
-2
true_click_four.py
vest/click/true_click_four.py
+3
-2
true_click_one.py
vest/click/true_click_one.py
+13
-12
true_click_three.py
vest/click/true_click_three.py
+3
-2
true_click_two.py
vest/click/true_click_two.py
+3
-2
auto_follow.py
vest/follow/auto_follow.py
+7
-6
auto_follow_new.py
vest/follow/auto_follow_new.py
+8
-36
true_comment_one.py
vest/reply/true_comment_one.py
+3
-3
true_comment_three.py
vest/reply/true_comment_three.py
+3
-3
true_comment_two.py
vest/reply/true_comment_two.py
+3
-3
answer_reply1.py
vest/reply_answer/answer_reply1.py
+3
-2
answer_reply2.py
vest/reply_answer/answer_reply2.py
+3
-2
answer_reply3.py
vest/reply_answer/answer_reply3.py
+3
-2
auto_star_urge.py
vest/urge/auto_star_urge.py
+3
-2
auto_urge1.py
vest/urge/auto_urge1.py
+3
-2
auto_urge2.py
vest/urge/auto_urge2.py
+3
-2
vest_click_reply.py
vest/vest_majiauser/vest_click_reply.py
+4
-3
No files found.
vest/click/true_click_five.py
View file @
d385bd59
...
...
@@ -23,10 +23,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/click/true_click_four.py
View file @
d385bd59
...
...
@@ -23,10 +23,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/click/true_click_one.py
View file @
d385bd59
...
...
@@ -19,19 +19,20 @@ def get_data(numtime, numtime2):
topic_id
=
list
(
data
)
topic_id_list
=
[]
logging
.
info
(
"get topic_id:
%
s"
%
topic_id
)
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow
=0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
(
)
except
:
pass
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted
=0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
logging
.
info
(
"get user_id:
%
s"
%
user_id
)
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
return
topic_id_list
except
:
logging
.
error
(
"catch exception,get_data:
%
s"
%
traceback
.
format_exc
())
return
[]
...
...
vest/click/true_click_three.py
View file @
d385bd59
...
...
@@ -23,10 +23,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/click/true_click_two.py
View file @
d385bd59
...
...
@@ -24,10 +24,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/follow/auto_follow.py
View file @
d385bd59
...
...
@@ -14,15 +14,16 @@ def get_data(numtime1, numtime2):
"SELECT distinct(user_id) FROM topic WHERE is_online=1 and create_time > '
%
s' and create_time < '
%
s'"
%
(
numtime1
,
numtime2
))
data
=
cursor
.
fetchall
()
user
_id
=
list
(
data
)
topic
_id
=
list
(
data
)
topic_id_list
=
[]
if
user
_id
:
for
i
in
user
_id
:
if
topic
_id
:
for
i
in
topic
_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
id
=
list
(
data
)
if
id
:
user_
id
=
list
(
data
)
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/follow/auto_follow_new.py
View file @
d385bd59
...
...
@@ -45,52 +45,24 @@ def get_commnet_id(numtime):
data2_id
=
list
(
data_group_follow
)
data3_id
=
list
(
data_new_user
)
data_reply
=
list
(
data_reply_reply
)
all_data
=
[]
all_data
.
extend
(
data_id
)
all_data
.
extend
(
data2_id
)
all_data
.
extend
(
data3_id
)
all_data
.
extend
(
data_reply
)
all_data
.
extend
(
data1_id
)
topic_id_list
=
[]
for
i
in
data_id
and
data_id
:
for
i
in
all_data
and
all_data
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
for
i
in
data1_id
and
data1_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
for
i
in
data2_id
and
data2_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
for
i
in
data3_id
and
data3_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
for
i
in
data_reply
and
data_reply
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
return
topic_id_list
...
...
vest/reply/true_comment_one.py
View file @
d385bd59
...
...
@@ -20,11 +20,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/reply/true_comment_three.py
View file @
d385bd59
...
...
@@ -22,11 +22,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/reply/true_comment_two.py
View file @
d385bd59
...
...
@@ -21,11 +21,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/reply_answer/answer_reply1.py
View file @
d385bd59
...
...
@@ -22,10 +22,11 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/reply_answer/answer_reply2.py
View file @
d385bd59
...
...
@@ -21,11 +21,12 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/reply_answer/answer_reply3.py
View file @
d385bd59
...
...
@@ -20,11 +20,12 @@ def get_data(numtime, numtime2):
try
:
for
i
in
topic_id
and
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
print
(
user_id
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/urge/auto_star_urge.py
View file @
d385bd59
...
...
@@ -18,10 +18,11 @@ def get_star_useid(numtime1, numtime2):
topic_id_list
=
[]
for
i
in
user_id
and
user_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
pc
.
close
()
...
...
vest/urge/auto_urge1.py
View file @
d385bd59
...
...
@@ -20,10 +20,11 @@ def get_data(numtime1, numtime2):
topic_id_list
=
[]
for
i
in
user_id
and
user_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
...
...
vest/urge/auto_urge2.py
View file @
d385bd59
...
...
@@ -20,10 +20,11 @@ def get_data(numtime1, numtime2):
topic_id_list
=
[]
for
i
in
user_id
and
user_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_shadow =0 "
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
i
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
)
logging
.
info
(
"Database version :
%
s "
%
topic_id_list
)
...
...
vest/vest_majiauser/vest_click_reply.py
View file @
d385bd59
...
...
@@ -41,11 +41,12 @@ def get_data(now, noww):
topic_id_list
=
[]
for
id
in
topic_id
:
cursor
.
execute
(
"select user_id from user_extra where user_id ="
+
str
(
id
[
1
])
+
" and is_shadow =1"
)
"select user_id,is_shadow from user_extra where user_id ="
+
str
(
id
[
0
])
+
" and is_online =1 and is_deleted =0"
)
data
=
cursor
.
fetchall
()
user_id
=
list
(
data
)
if
user_id
:
topic_id_list
.
append
(
i
)
if
(
user_id
and
user_id
[
0
][
1
]
==
0
)
or
len
(
user_id
)
==
0
:
topic_id_list
.
append
(
i
d
)
pc
.
close
()
logging
.
info
(
"get topic_id_list:
%
s"
%
topic_id_list
)
return
topic_id_list
...
...
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