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
3dfc03ee
Commit
3dfc03ee
authored
5 years ago
by
李小芳
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'change_time_outdate' into 'master'
删除1228 See merge request
!35
parents
9026e3ed
4f1b6b45
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
6 deletions
+1
-6
process_time.py
moment/views/process_time.py
+1
-6
No files found.
moment/views/process_time.py
View file @
3dfc03ee
...
@@ -362,16 +362,11 @@ def judge_offset_partition_have_consum(card_info=None, offset=0, partition=0):
...
@@ -362,16 +362,11 @@ def judge_offset_partition_have_consum(card_info=None, offset=0, partition=0):
:return:
:return:
"""
"""
try
:
try
:
if
card_info
[
'card_id'
]
in
[
719961
,
718880
,
717122
,
720913
]:
logging
.
info
(
"删除重复数据:
%
s"
%
card_info
[
'card_id'
])
return
False
##先判断是不是2019-12-29的
##先判断是不是2019-12-29的
create_time
=
card_info
[
'create_time'
]
create_time
=
card_info
[
'create_time'
]
datetime_create_time
=
datetime
.
datetime
.
strptime
(
create_time
,
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
datetime_create_time
=
datetime
.
datetime
.
strptime
(
create_time
,
'
%
Y-
%
m-
%
d
%
H:
%
M:
%
S'
)
str_data
=
str
(
datetime_create_time
.
year
)
+
str
(
datetime_create_time
.
month
)
+
str
(
datetime_create_time
.
day
)
str_data
=
str
(
datetime_create_time
.
year
)
+
str
(
datetime_create_time
.
month
)
+
str
(
datetime_create_time
.
day
)
if
str_data
in
[
'20191229'
,
'20191230'
]:
if
str_data
in
[
'20191229'
,
'20191230'
,
'20191228'
]:
return
False
return
False
redis_list_data
=
0
redis_list_data
=
0
...
...
This diff is collapsed.
Click to expand it.
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