corrected stage options
@@ -160,7 +160,10 @@ def get_meta_review_stage(client, request_forum):
else:
meta_review_due_date = None
- return openreview.MetaReviewStage(start_date = meta_review_start_date, due_date = meta_review_due_date, public = (request_forum.content.get('make_meta_reviews_public', None) == 'Yes'))
+ return openreview.MetaReviewStage(
+ start_date = meta_review_start_date,
+ due_date = meta_review_due_date,
+ public = request_forum.content.get('make_meta_reviews_public', '').startswith('Yes'))
def get_decision_stage(client, request_forum):
decision_start_date = request_forum.content.get('decision_start_date', '').strip()
@@ -184,6 +187,17 @@ def get_decision_stage(client, request_forum):
decision_options = request_forum.content.get('decision_options', '').strip()
if decision_options:
decision_options = [s.translate(str.maketrans('', '', '"\'')).strip() for s in decision_options.split(',')]
- return openreview.DecisionStage(options = decision_options, start_date = decision_start_date, due_date = decision_due_date, public = (request_forum.content.get('make_decisions_public', None) == 'Yes'), release_to_authors = (request_forum.content.get('release_decisions_to_authors', None) == 'Yes'), release_to_reviewers = (request_forum.content.get('release_decisions_to_reviewers', None) == 'Yes'))
+ return openreview.DecisionStage(
+ options = decision_options,
+ start_date = decision_start_date,
+ due_date = decision_due_date,
+ public = request_forum.content.get('make_decisions_public', '').startswith('Yes'),
+ release_to_authors = request_forum.content.get('release_decisions_to_authors', '').startswith('Yes'),
+ release_to_reviewers = request_forum.content.get('release_decisions_to_reviewers', '').startswith('Yes'))
else:
- return openreview.DecisionStage(start_date = decision_start_date, due_date = decision_due_date, public = (request_forum.content.get('make_decisions_public', None) == 'Yes'), release_to_authors = (request_forum.content.get('release_decisions_to_authors', None) == 'Yes'), release_to_reviewers = (request_forum.content.get('release_decisions_to_reviewers', None) == 'Yes'))
\ No newline at end of file
+ return openreview.DecisionStage(
+ start_date = decision_start_date,
+ due_date = decision_due_date,
+ public = request_forum.content.get('make_decisions_public', '').startswith('Yes'),
+ release_to_authors = request_forum.content.get('release_decisions_to_authors', '').startswith('Yes'),
+ release_to_reviewers = request_forum.content.get('release_decisions_to_reviewers', '').startswith('Yes'))
\ No newline at end of file
