From 7a3ed227b0e4c4bd47a76c0809adbd28872217f0 Mon Sep 17 00:00:00 2001 From: "C. Allwardt" <3979063+craig8@users.noreply.github.com> Date: Thu, 2 Nov 2023 12:30:12 -0700 Subject: [PATCH] Remove a sort that doesn't need to be there. --- ieee_2030_5/server/meteringfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ieee_2030_5/server/meteringfs.py b/ieee_2030_5/server/meteringfs.py index 28f659b..618fffc 100644 --- a/ieee_2030_5/server/meteringfs.py +++ b/ieee_2030_5/server/meteringfs.py @@ -51,7 +51,7 @@ def get(self) -> Response: sort_by = "timePeriod.start" if handled := parsed.reading_set_index is not None: obj = adpt.ListAdapter.get(parsed.last_list(), parsed.reading_set_index) - obj = sorted(obj, key="timePeriod.start") + elif parsed.has_meter_reading_list(): if handled := parsed.has_reading_type(): obj = get_href(request.path)