From 67fd48e957ad61d9c6cd04ecc49a90576143426c Mon Sep 17 00:00:00 2001 From: Areeb Ahmed <135235925+areebahmeddd@users.noreply.github.com> Date: Mon, 4 Nov 2024 14:44:37 +0530 Subject: [PATCH] Added comment for clarity Co-authored-by: Alex Garel --- openfoodfacts/images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openfoodfacts/images.py b/openfoodfacts/images.py index 27af5d1..7f2a03d 100644 --- a/openfoodfacts/images.py +++ b/openfoodfacts/images.py @@ -192,6 +192,7 @@ def extract_source_from_url(url: str) -> str: if url_path.endswith(".json"): url_path = str(Path(url_path).with_suffix(".jpg")) + # normalize windows path to unix path return url_path.replace("\\", "/")