set expdate to None if duedate is None
@@ -154,7 +154,7 @@ class BidInvitation(openreview.Invitation):
super(BidInvitation, self).__init__(id = conference.get_bid_id(),
cdate = tools.datetime_millis(start_date),
duedate = tools.datetime_millis(due_date),
- expdate = tools.datetime_millis(due_date + datetime.timedelta(minutes = SHORT_BUFFER_MIN)),
+ expdate = tools.datetime_millis(due_date + datetime.timedelta(minutes = SHORT_BUFFER_MIN)) if due_date else None,
readers = readers,
writers = [conference.get_id()],
signatures = [conference.get_id()],
@@ -343,7 +343,7 @@ class ReviewInvitation(openreview.Invitation):
super(ReviewInvitation, self).__init__(id = conference.id + '/-/Paper' + str(note.number) + '/' + name,
cdate = tools.datetime_millis(start_date),
duedate = tools.datetime_millis(due_date),
- expdate = tools.datetime_millis(due_date + datetime.timedelta(days = LONG_BUFFER_DAYS)),
+ expdate = tools.datetime_millis(due_date + datetime.timedelta(days = LONG_BUFFER_DAYS)) if due_date else None,
readers = ['everyone'],
writers = [conference.id],
signatures = [conference.id],
@@ -387,7 +387,7 @@ class MetaReviewInvitation(openreview.Invitation):
super(MetaReviewInvitation, self).__init__(id = conference.id + '/-/Paper' + str(note.number) + '/' + name,
cdate = tools.datetime_millis(start_date),
duedate = tools.datetime_millis(due_date),
- expdate = tools.datetime_millis(due_date + datetime.timedelta(days = LONG_BUFFER_DAYS)),
+ expdate = tools.datetime_millis(due_date + datetime.timedelta(days = LONG_BUFFER_DAYS)) if due_date else None,
readers = ['everyone'],
writers = [conference.id],
signatures = [conference.id],
