Commit 183bbcbd authored by Dimitri Podborski's avatar Dimitri Podborski
Browse files

back to Wednesday again. This should be a config param.

parent 7a832a62
......@@ -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
......@@ -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'):
return datetime.strptime(text.strip(), fmt)
except ValueError:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment