Skip to content

Commit

Permalink
Added comment for clarity
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Garel <[email protected]>
  • Loading branch information
areebahmeddd and alexgarel authored Nov 4, 2024
1 parent 50f7562 commit 67fd48e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openfoodfacts/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("\\", "/")


Expand Down

0 comments on commit 67fd48e

Please sign in to comment.