Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
V
vest
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
2
Merge Requests
2
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
rank
vest
Commits
69859c8a
Commit
69859c8a
authored
Jan 10, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'del_today_datas' into 'master'
Del today datas See merge request
!26
parents
1584e854
e2f95fe9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
auto_click.py
click/views/auto_click.py
+1
-0
auto_follow.py
follow/views/auto_follow.py
+2
-0
process_time.py
moment/views/process_time.py
+12
-4
No files found.
click/views/auto_click.py
View file @
69859c8a
...
...
@@ -69,6 +69,7 @@ def auto_click_user(card_info, after_day=False):
card_info
[
'all_push_time'
]
=
get_time
card_info
[
"need_pust_num"
]
=
len
(
userids
)
card_info
[
"have_pust_num"
]
=
0
logging
.
info
(
"get card_info:
%
s"
%
card_info
)
save_data_to_kafka
(
card_info
)
break
else
:
...
...
follow/views/auto_follow.py
View file @
69859c8a
...
...
@@ -73,6 +73,8 @@ def auto_follow_user(card_info, after_day=False):
card_info
[
'all_push_time'
]
=
get_time
card_info
[
"need_pust_num"
]
=
len
(
userids
)
card_info
[
"have_pust_num"
]
=
0
logging
.
info
(
"get card_info:
%
s"
%
card_info
)
save_data_to_kafka
(
card_info
)
break
else
:
...
...
moment/views/process_time.py
View file @
69859c8a
...
...
@@ -178,8 +178,13 @@ def get_content_time_by_create_time(create_time="", content_level=0, action_type
##根据转换后的分钟数进行比较
##转化成分数后进行一层一层的比较
if
num_days
==
0
:
get_time
=
randomDate
(
create_time
=
createt
,
action_type
=
action_type
)
time_region
=
0
num_days
=
1
get_time
=
get_one_six_days_random_time
(
content_level
=
content_level
,
num_days
=
num_days
,
action_type
=
action_type
,
content_day_need_add_one_day
=
content_day_need_add_one_day
)
time_region
=
1
# get_time = randomDate(create_time=createt, action_type=action_type)
# time_region = 0
return
get_time
,
time_region
elif
num_days
>=
1
and
num_days
<=
6
:
...
...
@@ -225,9 +230,12 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
content_day_need_add_one_day
=
True
if
num_days
==
0
:
get_time
=
randomDate
(
create_time
=
createt
,
action_type
=
action_type
)
num_days
=
1
get_time
=
get_one_six_days_random_time
(
num_days
=
num_days
,
action_type
=
action_type
,
content_level
=
content_level
,
content_day_need_add_one_day
=
content_day_need_add_one_day
)
return
get_time
,
0
return
get_time
,
1
elif
num_days
==
1
:
get_time
=
get_one_six_days_random_time
(
num_days
=
num_days
,
action_type
=
action_type
,
...
...
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