Don't export private notes

This commit is contained in:
Stavros Korokithakis 2020-11-20 22:15:45 +02:00
parent 9786f8a945
commit c855801ef6
No known key found for this signature in database
GPG Key ID: 26EA345ECD4C2A63

View File

@ -98,7 +98,11 @@ class JoplinExporter:
def export(self): def export(self):
self.read_data() self.read_data()
folder_list = list(self.folders.items()) # Private notes shouldn't be published.
folder_list = list(
item for item in self.folders.items() if item[1] != "Private"
)
# Sort "Welcome" last. # Sort "Welcome" last.
folder_list.sort( folder_list.sort(
key=lambda x: x[1].lower().strip() if x[1] != "Welcome" else "0" key=lambda x: x[1].lower().strip() if x[1] != "Welcome" else "0"