diff --git a/bin/export-pion b/bin/export-pion index 20c09ac4ebd015e81604920c14195d1de48f41a9..55460b4a04f5b91b9fe58d91754c9c4b2610bc9c 100755 --- a/bin/export-pion +++ b/bin/export-pion @@ -35,6 +35,7 @@ res = (sess.query(db.Participant, db.Participation, db.Contest, db.Round) .options(joinedload(db.Participant.school_place).joinedload(db.Place.parent_place).joinedload(db.Place.parent_place).joinedload(db.Place.parent_place)) .options(joinedload(db.Participation.place)) .filter(db.Round.master_round_id == db.Round.round_id) + .filter(db.Participation.state == db.PartState.active) .all())