Don't export private notes
This commit is contained in:
parent
9786f8a945
commit
c855801ef6
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user