From 1bc6f7c89687c079acbbe242e862ffc66db07df5 Mon Sep 17 00:00:00 2001 From: Samuel Martin Date: Sat, 23 Sep 2017 10:10:10 +0200 Subject: glucometer.py: restrict sorting choices to the common reading fields This change mainly aims to avoid breaking the glucometer.py script when introducing the ketone reading in the following patches. --- glucometer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glucometer.py b/glucometer.py index f4c1be7..385653c 100755 --- a/glucometer.py +++ b/glucometer.py @@ -52,7 +52,7 @@ def main(): help='Select the unit to use for the dumped data.') parser_dump.add_argument( '--sort-by', action='store', default='timestamp', - choices=common.Reading._fields, + choices=common._ReadingBase._fields, help='Field to order the dumped data by.') parser_date = subparsers.add_parser( -- cgit v1.2.3