Skip to content
Snippets Groups Projects
Commit 218dbab6 authored by Andreas Domanowski's avatar Andreas Domanowski
Browse files

Add block heading when iterating over archive

parent b76e73df
No related branches found
No related tags found
1 merge request!1Hedgedoc import
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment