nncli

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

commit be9bc139d30c1069f3629875a0e8831fca583a11
parent 5ccd1c9699fd5aab822f05e5090ba6b6457461b9
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Wed,  1 Aug 2018 06:36:29 -0400

Fix nncli import

Diffstat:
Mnnotes_cli/notes_db.py | 5++---
1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/nnotes_cli/notes_db.py b/nnotes_cli/notes_db.py @@ -306,9 +306,8 @@ def import_note(self, note): if not isinstance(new_note['content'], str): raise ValueError('"content" must be a string') - for n in (new_note['modified']): - if not 0 <= n <= timestamp: - raise ValueError('date fields must be real') + if not 0 <= new_note['modified'] <= timestamp: + raise ValueError('"modified" field must be real') if not isinstance(new_note['category'], str) or \ new_note['category'] is None: