diff --git a/examples/poll_auto_review.py b/examples/poll_auto_review.py index acd754c..8a22599 100644 --- a/examples/poll_auto_review.py +++ b/examples/poll_auto_review.py @@ -30,7 +30,8 @@ async def auto_review( return AutoReviewed( changes=predictions.to_changes(result), - stp=True, # Defaults to `False` and may be omitted. + reject=False, # Defaults to `False` and may be omitted. + stp=False, # Defaults to `False` and may be omitted. ) diff --git a/indico_toolkit/polling/autoreview.py b/indico_toolkit/polling/autoreview.py index 856c4eb..c93fa9a 100644 --- a/indico_toolkit/polling/autoreview.py +++ b/indico_toolkit/polling/autoreview.py @@ -31,6 +31,7 @@ @dataclass class AutoReviewed: changes: "dict[str, Any] | list[dict[str, Any]]" + reject: bool = False stp: bool = False @@ -170,6 +171,7 @@ async def _worker(self, submission_id: "SubmissionId") -> None: SubmitReview( submission_id, changes=auto_reviewed.changes, + rejected=auto_reviewed.reject, force_complete=auto_reviewed.stp, ) )