Commit ef3b2e3b authored by Mickaël Desfrênes's avatar Mickaël Desfrênes
Browse files

fix local path

parent 2def5b34
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ def hash_to_iiif_path(file_hash: str, separator: str = os.path.sep) -> str:

def hash_to_local_path(file_hash: str) -> str:
    return "{}{}{}{}{}{}{}".format(
        settings.MEDIA_FILES_DIR,
        settings.MEDIA_FILES_DIR.rstrip("/"),
        os.path.sep,
        file_hash[:2],
        os.path.sep,