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
5cfa3e37
Commit
5cfa3e37
authored
Dec 26, 2019
by
lixiaofang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto_vest
parent
c11c68b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
auto_follow.py
follow/views/auto_follow.py
+1
-2
process_time.py
moment/views/process_time.py
+0
-1
No files found.
follow/views/auto_follow.py
View file @
5cfa3e37
...
...
@@ -49,9 +49,8 @@ def auto_follow_user(card_info, after_day=False):
"all_follow_id"
not
in
card_info
and
"all_push_time"
not
in
card_info
):
###根据创建时间回答等级去获取对应的下发时间
repeat_time
=
1
while
True
:
repeat_time
=
1
if
card_info
[
'type'
]
==
"get_write_answer_userinfo"
:
repeat_time
=
0
card_info
[
'have_follow_number'
]
=
0
...
...
moment/views/process_time.py
View file @
5cfa3e37
...
...
@@ -204,7 +204,6 @@ def get_click_follow_time_by_create_time(create_time="", content_level=0, action
createt
=
datetime
.
datetime
.
strptime
(
create_time
,
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
nowt
=
now
.
strftime
(
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
##获取创建时间和当前时间的相差秒数
num
=
(
now
-
createt
)
.
total_seconds
()
num_days
=
(
now
-
createt
)
.
days
content_day_need_add_one_day
=
False
logging
.
info
(
"get-----------------num_days:
%
s"
%
num_days
)
...
...
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