Skip to content

Commit

Permalink
Merge pull request #53 from introlab/dev
Browse files Browse the repository at this point in the history
Fixed Recordset selection by participant
  • Loading branch information
doumdi authored Dec 5, 2019
2 parents 8a150a6 + 92c78a2 commit 2c6f58b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/libopenimu/db/DBManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ def get_all_recordsets(self, participant=Participant(), start_date=None):
if start_date is not None:
query = self.session.query(Recordset).filter(func.date(Recordset.start_timestamp) == start_date) \
.order_by(asc(Recordset.start_timestamp))
if participant.id_participant is not None:
query = query.filter(Recordset.id_participant == participant.id_participant)
return query.all()

if participant.id_participant is None:
Expand Down

0 comments on commit 2c6f58b

Please sign in to comment.