From 89bb0aa56d952aa3450bfc747c92be8335875035 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Thu, 18 Feb 2021 20:02:53 -0600 Subject: [PATCH] Use end time as default filter, sort for Trainwreck --- tailbone/views/trainwreck/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tailbone/views/trainwreck/base.py b/tailbone/views/trainwreck/base.py index 85e77761..927cb79f 100644 --- a/tailbone/views/trainwreck/base.py +++ b/tailbone/views/trainwreck/base.py @@ -60,7 +60,6 @@ class TransactionView(MasterView): grid_columns = [ 'start_time', 'end_time', - 'upload_time', 'system', 'terminal_id', 'receipt_number', @@ -143,10 +142,11 @@ class TransactionView(MasterView): super(TransactionView, self).configure_grid(g) g.filters['receipt_number'].default_active = True g.filters['receipt_number'].default_verb = 'equal' - g.filters['upload_time'].default_active = True - g.filters['upload_time'].default_verb = 'equal' - g.filters['upload_time'].default_value = six.text_type(localtime(self.rattail_config).date()) - g.set_sort_defaults('upload_time', 'desc') + + g.filters['end_time'].default_active = True + g.filters['end_time'].default_verb = 'equal' + g.filters['end_time'].default_value = six.text_type(localtime(self.rattail_config).date()) + g.set_sort_defaults('end_time', 'desc') g.set_enum('system', self.enum.TRAINWRECK_SYSTEM) g.set_type('total', 'currency')