loop through all folders and find notes that have a -blog- tag
This commit is contained in:
@@ -192,7 +192,7 @@ class JoplinExporter:
|
||||
# Add the resource to the set of used resources, so we can only copy
|
||||
# the resources that are used.
|
||||
self.used_resources.add(resource_id)
|
||||
return "content/resources/" + resource_id + resource.derived_ext
|
||||
return "resources/" + resource_id + resource.derived_ext
|
||||
|
||||
def copy_resources(self):
|
||||
"""Copy all the used resources to the output directory."""
|
||||
@@ -218,7 +218,9 @@ class JoplinExporter:
|
||||
}
|
||||
|
||||
self.folders = {
|
||||
id: folder for id, folder in self.folders.items() if folder.is_for_blog()
|
||||
# id: folder for id, folder in self.folders.items() if folder.is_for_blog()
|
||||
# For the moment, instead of checking if Folder is for blog, check all folders
|
||||
id: folder for id, folder in self.folders.items() if True
|
||||
}
|
||||
|
||||
# Get the tags by ID.
|
||||
@@ -255,7 +257,7 @@ class JoplinExporter:
|
||||
datetime.fromtimestamp(updated_time / 1000),
|
||||
tags=note_tags[id],
|
||||
)
|
||||
if note.is_for_blog():
|
||||
if not note.is_for_blog():
|
||||
continue
|
||||
|
||||
self.notes[note.folder.id].append(note)
|
||||
|
Reference in New Issue
Block a user