Skip to content

Commit

Permalink
#34: Update endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
keiranjprice101 committed Aug 29, 2019
1 parent 7b32a1f commit c7026b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resources/table_endpoints/table_endpoints.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ class InstrumentsFacilityCyclesInvestigations(Resource):
@requires_session_id
@queries_records
def get(self, instrument_id, cycle_id):
return list(map(lambda x: x.to_dict(), get_investigations_for_instrument_in_facility_cycle(instrument_id, cycle_id))), 200
return get_investigations_for_instrument_in_facility_cycle(instrument_id, cycle_id,
get_filters_from_query_string()), 200


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

0 comments on commit c7026b3

Please sign in to comment.