add submission fields to blind inv
@@ -76,15 +76,25 @@ class BlindSubmissionsInvitation(openreview.Invitation):
def __init__(self, conference, hide_fields):
- content = {
- 'authors': {
- 'values': ['Anonymous']
- },
- 'authorids': {
- 'values-regex': '.*'
+ submission_stage = conference.submission_stage
+ original_content = submission_stage.get_content()
+
+ content = {}
+
+ for key in original_content:
+ if key == 'authors':
+ content[key] = {
+ 'values': ['Anonymous'],
+ 'order': original_content[key]['order']
}
+ else:
+ content[key] = {
+ 'value-regex': '.*',
+ 'order': original_content[key]['order']
}
+
for field in hide_fields:
+ if field not in content:
content[field] = {
'value-regex': '.*'
}
