Skip to content

Commit

Permalink
Journal: parametrize the number of reviewers (#2030)
Browse files Browse the repository at this point in the history
* parametrize the number of reviewers

* increase package version

---------

Co-authored-by: celestemartinez <[email protected]>
Co-authored-by: Celeste Martinez <[email protected]>
  • Loading branch information
3 people authored Feb 27, 2024
1 parent 9c92f27 commit 31ab445
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
10 changes: 8 additions & 2 deletions openreview/journal/invitation.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, journal):

self.author_edge_reminder_process = {
'dates': ["#{4/duedate} + " + str(day), "#{4/duedate} + " + str(week)],
'script': self.get_process_content('process/author_edge_reminder_process.py')
'script': self.get_super_dateprocess_content('author_edge_reminder_script', self.journal.get_meta_invitation_id(), { 0: '1', 1: 'one week' })
}

self.author_reminder_process = {
Expand Down Expand Up @@ -54,7 +54,7 @@ def __init__(self, journal):

self.ae_edge_reminder_process = {
'dates': ["#{4/duedate} + " + str(day), "#{4/duedate} + " + str(week), "#{4/duedate} + " + str(one_month)],
'script': self.get_process_content('process/action_editor_edge_reminder_process.py')
'script': self.get_super_dateprocess_content('ae_edge_reminder_script', self.journal.get_meta_invitation_id(), { 0: '1', 1: 'one week', 2: 'one month' })
}

def set_invitations(self, assignment_delay):
Expand Down Expand Up @@ -244,6 +244,12 @@ def set_meta_invitation(self):
},
'author_reminder_script': {
'value': self.get_process_content('process/author_reminder_process.py')
},
'ae_edge_reminder_script': {
'value': self.get_process_content('process/action_editor_edge_reminder_process.py')
},
'author_edge_reminder_script': {
'value': self.get_process_content('process/author_edge_reminder_process.py')
}
},
edit=True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def process(client, invitation):

edges = client.get_edges(invitation=journal.get_reviewer_assignment_id(), head=submission.id)

if len(edges) >= 3:
if len(edges) >= journal.get_number_of_reviewers():
return

if date_index == 0 or date_index == 1:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
setup(
name='openreview-py',

version='1.36.0',
version='1.36.1',

description='OpenReview API Python client library',
url='https://github.com/openreview/openreview-py',
Expand Down

0 comments on commit 31ab445

Please sign in to comment.