Skip to content
Snippets Groups Projects
Commit 1505e4bc authored by Mathieu Loiseau's avatar Mathieu Loiseau
Browse files

Bug last book ignored

parent 9c484609
No related branches found
No related tags found
No related merge requests found
...@@ -15,7 +15,7 @@ Extraire les notes d'une liseuse Vivlio ...@@ -15,7 +15,7 @@ Extraire les notes d'une liseuse Vivlio
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-s SOURCE, --source SOURCE -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 -f FORMAT, --format FORMAT
le format d'export (JSON ou wiki) le format d'export (JSON ou wiki)
-d DESTINATION, --destination DESTINATION -d DESTINATION, --destination DESTINATION
......
...@@ -233,7 +233,7 @@ def export_data(data, directory, format="json"): ...@@ -233,7 +233,7 @@ def export_data(data, directory, format="json"):
curbook.empty() curbook.empty()
curbook = Book(comment[1],comment[0]) curbook = Book(comment[1],comment[0])
curbook.addNote(Note(comment[3],comment[2])) curbook.addNote(Note(comment[3],comment[2]))
if curbook.is_empty(): if not curbook.is_empty():
curbook.store(directory, format) curbook.store(directory, format)
#main #main
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment