Skip to content

Commit

Permalink
reverses the order of the tests to go from older to newer refs #700
Browse files Browse the repository at this point in the history
  • Loading branch information
fredkingham committed Feb 25, 2019
1 parent 98806cd commit 2b079ae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions elcid/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,7 @@ def serialise_lab_tests(self, patient):
)

recent_dates = sorted(list(all_dates))
recent_dates.reverse()
recent_dates = recent_dates[:5]
recent_dates = recent_dates[:-5]
obs_values = sorted(serialised_obvs, key=self.sort_observations)
result = dict(
obs_values=obs_values,
Expand Down

0 comments on commit 2b079ae

Please sign in to comment.