nncli

NextCloud Notes Command Line Interface
git clone git://git.danielmoch.com/nncli.git
Log | Files | Refs | LICENSE

commit 83ff1ea0bdb7a23a2f6dbb52744e185bbf90a55a
parent 807f2f595a5e8e14c370501597b999961ccff0fe
Author: Eric Davis <edavis@insanum.com>
Date:   Thu, 10 Jul 2014 20:15:52 -0700

regex search now also searches trashed notes

Diffstat:
Mnotes_db.py | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/notes_db.py b/notes_db.py @@ -214,15 +214,11 @@ def filter_notes_regex(self, search_string=None): sspat = None filtered_notes = [] - active_notes = 0 # total number of notes, excluding deleted ones + active_notes = 0 # total number of notes, including deleted ones for k in self.notes: n = self.notes[k] - # we don't do anything with deleted notes - if n.get('deleted'): - continue - active_notes += 1 if not sspat: