def _process(self): if self.paper.state != PaperRevisionState.submitted: reset_paper_state(self.paper) flash(_("The paper judgment has been reset"), 'success') return jsonify_data(html=render_paper_page(self.paper))
def _process(self): if self.paper.state != PaperRevisionState.submitted: reset_paper_state(self.paper) return '', 204
def _process(self): if self.paper.state != PaperRevisionState.submitted: reset_paper_state(self.paper) flash(_("The paper judgment has been reset"), 'success') return jsonify_data(html=render_paper_page(self.paper))