Skip to content
Snippets Groups Projects

Hedgedoc import

Merged Andreas Domanowski requested to merge hedgedoc-import into main
1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -68,6 +68,7 @@ def process_archive_export(archive_file, instance_url, lookup_map, session_id, u
print("If you visited your own document via a, e.g., \"codi-instance.tld/my_specified_free_url\" " +
"this script tries to migrate it to the HedgeDoc instance at \"hedgedoc-instance.tld/my_own_path\"")
print("If this is not possible, a new random URL for the document will be created")
print_block_heading("Iterating over files in archive and trying to upload them")
for file in zf.namelist():
document_title = Path(file).stem
# check for every file if there is a match between its name (= title in history json) and an existing path
Loading