How to get all Rebuttals

For some venues, rebuttals are made by a specific invitation. PCs select the value for this in the venue configuration form in the 'Number Of Rebuttals' field.

Using the Rebuttal invitation

If the venue used a Rebuttal invitation (most common scenario), then you can use the following steps to collect all rebuttals for the venue.

2. Get all submissions (with direct replies)

venue_id = VENUE_ID
venue_group_settings = client.get_group(venue_id).content
submission_invitation = venue_group_settings['submission_id']['value']
submissions = client.get_all_notes(
    invitation=submission_invitation,
    details='directReplies'
)

See also: How do I find a venue id?

3. Filter replies for Rebuttals

rebuttals = []
for s in submissions:
    for r in s.details['directReplies']:
        if any(invitation.endswith('Rebuttal') for invitation in r['invitations']):
            rebuttals.append(r)

Using Official Comments to get rebuttals

An alternative method, which for example can be used for venues that do not have a specific rebuttal invitation, you can get official comments for the venue, then filter the comments to those signed by the authors. Please note that this may include some non-rebuttal comments. See: How to get all official comments for further description.

Last updated