diff --git a/district/jekyll_import.py b/district/jekyll_import.py index 2ed9e13b017fe1e64e8acc4bd1985bf84d8d1b26..d2e5d49df3cc013a46d5d483a5ccb9b7af7b9dba 100644 --- a/district/jekyll_import.py +++ b/district/jekyll_import.py @@ -225,7 +225,7 @@ def get_or_create_image(path, file_path, collection, repo_name) -> Image or None img_name = file_path.split("/")[-1] img_assets_folder = repo_name.split(".")[0] # TODO make as form field img_url = "https://a.pirati.cz/{}/img/{}".format( - img_assets_folder, file_path + img_assets_folder, file_path.split("#")[0] ) img_path = os.path.join(path, img_name) try: