Skip to content

Commit

Permalink
#34: Add missing filter params
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Sep 5, 2019
1 parent cbec9d2 commit 1f6a915
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/table_endpoints/table_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class InstrumentsFacilityCyclesCount(Resource):
@requires_session_id
@queries_records
def get(self, id):
return get_facility_cycles_for_instrument_count(id), 200
return get_facility_cycles_for_instrument_count(id, get_filters_from_query_string()), 200


class InstrumentsFacilityCyclesInvestigations(Resource):
Expand All @@ -46,4 +46,5 @@ class InstrumentsFacilityCyclesInvestigationsCount(Resource):
@requires_session_id
@queries_records
def get(self, instrument_id, cycle_id):
return get_investigations_for_instrument_in_facility_cycle_count(instrument_id, cycle_id), 200
return get_investigations_for_instrument_in_facility_cycle_count(instrument_id, cycle_id,
get_filters_from_query_string()), 200

0 comments on commit 1f6a915

Please sign in to comment.