commit a4f2cac8d3d414b14938fd8ad11712fb613552b7
parent 3be36c225d91d35bab74e0a8a4f5bd05cf8ccd06
Author: Daniel Moch <daniel@danielmoch.com>
Date: Thu, 14 Mar 2019 18:06:04 -0400
Make filtered_notes_sort public
view_titles.py uses this method for sorting, so it can't be private.
Credit Russell Ault for the bug report
Signed-off-by: Daniel Moch <daniel@danielmoch.com>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/nncli/notes_db.py b/nncli/notes_db.py
@@ -83,7 +83,7 @@ def set_update_view(self, update_view):
"""Set the update_view method"""
self.update_view = update_view
- def _filtered_notes_sort(self, filtered_notes, sort_mode='date'):
+ def filtered_notes_sort(self, filtered_notes, sort_mode='date'):
"""Sort filtered note set"""
if sort_mode == 'date':
if self.config.get_config('favorite_ontop') == 'yes':
@@ -124,7 +124,7 @@ def filter_notes(self, search_string=None, search_mode='gstyle',
filtered_notes, match_regexp, active_notes = \
self._filter_notes_regex(search_string)
- self._filtered_notes_sort(filtered_notes, sort_mode)
+ self.filtered_notes_sort(filtered_notes, sort_mode)
return filtered_notes, match_regexp, active_notes