Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dimitri Podborski
AutomationTools
Commits
183bbcbd
Commit
183bbcbd
authored
Apr 20, 2021
by
Dimitri Podborski
Browse files
back to Wednesday again. This should be a config param.
parent
7a832a62
Changes
2
Hide whitespace changes
Inline
Side-by-side
automation/helpers.py
View file @
183bbcbd
...
...
@@ -103,7 +103,7 @@ def is_document_late(meeting_start, v1_upload_timestamp):
meeting_start and v1_upload_timestamp shall be datetime objects
'''
meeting_start
=
meeting_start
.
replace
(
hour
=
0
,
minute
=
0
,
second
=
0
)
# paranoia
deadline
=
meeting_start
-
timedelta
(
days
=
6
)
# End of
Monday
deadline
=
meeting_start
-
timedelta
(
days
=
4
)
# End of
Wed.
diff
=
deadline
-
v1_upload_timestamp
if
diff
.
total_seconds
()
<=
0
:
return
True
...
...
automation/mdms.py
View file @
183bbcbd
...
...
@@ -89,7 +89,7 @@ class MDMSParser:
'''
Try parsing the timestamp, if not possible return None
'''
for
fmt
in
(
'%Y-%m-%d %H:%M:%S'
,
'Y-%m-%d'
):
for
fmt
in
(
'%Y-%m-%d %H:%M:%S'
,
'
%
Y-%m-%d'
):
try
:
return
datetime
.
strptime
(
text
.
strip
(),
fmt
)
except
ValueError
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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