From 657e3a7c1a3ee48b7cd3ba00f6aa7122953d3dde Mon Sep 17 00:00:00 2001
From: Ondrej Rehounek <ondra.rehounek@seznam.cz>
Date: Fri, 25 Mar 2022 08:33:43 +0100
Subject: [PATCH] district: split image path from hash...

---
 district/jekyll_import.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/district/jekyll_import.py b/district/jekyll_import.py
index 2ed9e13b..d2e5d49d 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:
-- 
GitLab