From b5163c236019f3f77667e04e4ea09621593914fe Mon Sep 17 00:00:00 2001 From: Boris Date: Tue, 15 Aug 2023 11:18:06 -0500 Subject: [PATCH] Add feature: Filter timers by name In this commit, we've implemented a new feature that enhances the usability and flexibility of BabyBuddy. Users can now filter timers by their names, making it convenient to find timers without having to remember or input their specific IDs. This is particularly useful when dealing with timers that users might not be consciously aware of or for which remembering IDs is not feasible. This improvement has broader implications, especially when it comes to programmable scenarios such as leveraging Apple Shortcuts. --- api/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/filters.py b/api/filters.py index 911918c6..a8a7c859 100644 --- a/api/filters.py +++ b/api/filters.py @@ -99,7 +99,7 @@ class TemperatureFilter(TimeFieldFilter, TagsFieldFilter): class TimerFilter(StartEndFieldFilter): class Meta(StartEndFieldFilter.Meta): model = models.Timer - fields = sorted(StartEndFieldFilter.Meta.fields + ["user"]) + fields = sorted(StartEndFieldFilter.Meta.fields + ["name", "user"]) class TummyTimeFilter(StartEndFieldFilter, TagsFieldFilter):