Add "WIP" to the exclusion list
This commit is contained in:
parent
15acc9ceca
commit
65dd7c6675
@ -127,13 +127,18 @@ class JoplinExporter:
|
|||||||
dir = self.content_dir / slugify(folder_title)
|
dir = self.content_dir / slugify(folder_title)
|
||||||
dir.mkdir(parents=True)
|
dir.mkdir(parents=True)
|
||||||
contents = []
|
contents = []
|
||||||
for note_counter, note in enumerate(
|
note_counter = 0
|
||||||
sorted(self.notes[folder_id], key=lambda n: n.title)
|
for note in sorted(self.notes[folder_id], key=lambda n: n.title):
|
||||||
):
|
if contains_word("private", note.title) or contains_word(
|
||||||
if contains_word("private", note.title):
|
"wip", note.title
|
||||||
print(f"Note is private, skipping: {folder_title} - {note.title}.")
|
):
|
||||||
|
print(
|
||||||
|
f"Note is unpublished, skipping: {folder_title} - {note.title}."
|
||||||
|
)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
print(f"Exporting {folder_title} - {note.title}...")
|
print(f"Exporting {folder_title} - {note.title}...")
|
||||||
|
note_counter += 1
|
||||||
contents.append((note.title, note.get_url()))
|
contents.append((note.title, note.get_url()))
|
||||||
with (self.content_dir / (note.get_url() + ".md")).open(
|
with (self.content_dir / (note.get_url() + ".md")).open(
|
||||||
mode="w"
|
mode="w"
|
||||||
|
Loading…
Reference in New Issue
Block a user