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
f3c2025b
Commit
f3c2025b
authored
Aug 10, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
af5cab0a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
5 deletions
+7
-5
trans2es_mapping2es.py
trans2es/management/commands/trans2es_mapping2es.py
+6
-1
vest_click_reply.py
vest/vest_majiauser/vest_click_reply.py
+1
-4
No files found.
trans2es/management/commands/trans2es_mapping2es.py
View file @
f3c2025b
...
...
@@ -13,7 +13,8 @@ from vest.follow import auto_follow, auto_follow_new
from
vest.urge
import
auto_star_urge
,
auto_lunch_app
,
auto_lunch_app2
,
auto_urge1
,
auto_urge2
from
vest.fix
import
fix_no_comment_click
from
vest.reply_answer
import
reply_comment2
,
reply_comment3
,
answer_reply2
,
answer_reply3
,
answer_reply1
from
vest.request
import
get_session
,
auto_request
,
auto_user_id
from
vest.request
import
get_session
,
auto_user_id
from
vest.vest_majiauser
import
vest_click_reply
class
Command
(
BaseCommand
):
...
...
@@ -126,6 +127,10 @@ class Command(BaseCommand):
if
options
[
"mvest"
]
==
"get_user_id"
:
auto_user_id
.
auto_user_id
()
# 马甲3456
if
options
[
"mvest"
]
==
"vest_click_reply"
:
vest_click_reply
.
vest_click_reply
()
except
:
...
...
vest/vest_majiauser/vest_click_reply.py
View file @
f3c2025b
...
...
@@ -54,10 +54,8 @@ def get_data(now, noww):
return
None
if
__name__
==
"__main__"
:
def
vest_click_reply
():
try
:
now
=
datetime
.
datetime
.
now
()
yes_time
=
now
-
datetime
.
timedelta
(
minutes
=
5
)
user_data
=
open
(
"/srv/apps/physical/vest/data/user_id.txt"
,
"r"
)
...
...
@@ -65,7 +63,6 @@ if __name__ == "__main__":
for
i
in
user_data
.
readlines
():
user_list
.
append
(
i
)
topic_id
=
get_data
(
yes_time
,
now
)
dicts
=
{}
if
topic_id
:
for
id
in
topic_id
:
rand_num
=
random
.
randint
(
1
,
3
)
...
...
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