def _process(self): contributions = Contribution.query.with_parent( self.event_new).filter_by(is_scheduled=False) contributions = [ c for c in contributions if c.session_id == self.session_id ] return jsonify( contributions=[serialize_contribution(x) for x in contributions])
def _process(self): contributions = Contribution.query.with_parent(self.event_new).filter_by(is_scheduled=False) contributions = [c for c in contributions if c.session_id == self.session_id] return jsonify(contributions=[serialize_contribution(x) for x in contributions])