From 1505e4bc0296b83c20a125b6d5514f440863c81f Mon Sep 17 00:00:00 2001 From: Mathieu Loiseau <mathieu.loiseau@univ-grenoble-alpes.fr> Date: Thu, 15 Jul 2021 18:42:37 +0200 Subject: [PATCH] Bug last book ignored --- README.md | 2 +- extract_notes.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3afaea7..7d99231 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Extraire les notes d'une liseuse Vivlio optional arguments: -h, --help show this help message and exit -s SOURCE, --source SOURCE - le dossier de la liseuse + le dossier de la liseuse (optional for linux, mandatory for other OSes) -f FORMAT, --format FORMAT le format d'export (JSON ou wiki) -d DESTINATION, --destination DESTINATION diff --git a/extract_notes.py b/extract_notes.py index 286800b..b456cf1 100755 --- a/extract_notes.py +++ b/extract_notes.py @@ -233,7 +233,7 @@ def export_data(data, directory, format="json"): curbook.empty() curbook = Book(comment[1],comment[0]) curbook.addNote(Note(comment[3],comment[2])) - if curbook.is_empty(): + if not curbook.is_empty(): curbook.store(directory, format) #main -- GitLab