Skip to content

Commit

Permalink
Codestyle ❄️
Browse files Browse the repository at this point in the history
  • Loading branch information
Sibyx committed Sep 7, 2024
1 parent d300f66 commit 7e32629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions griminventory_api/api/items.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@items.route("/v1/items/<item_uuid>.png", methods=["GET"])
def generate_qr_code(item_uuid: str) -> Response:
qr_link = request.url_root.strip("/").replace('http://', 'https://') + f"/v1/items/{item_uuid}"
qr_link = request.url_root.strip("/").replace("http://", "https://") + f"/v1/items/{item_uuid}"
qr_img = generate_qr_code_image(qr_link)

img_io = BytesIO()
Expand All @@ -26,7 +26,7 @@ def generate_lbx_file(item_uuid: str) -> Response:
# Fetch page data from Notion
notion_data = get_notion_page_data(item_uuid)
title = notion_data.get("properties", {}).get("Name", {}).get("title", [{}])[0].get("plain_text", "Unknown Item")
qr_link = request.url_root.strip("/").replace('http://', 'https://') + f"/v1/items/{item_uuid}"
qr_link = request.url_root.strip("/").replace("http://", "https://") + f"/v1/items/{item_uuid}"

# Generate the binary .lbx content
lbx_content = create_lbx_file(qr_data=qr_link, text_data=title)
Expand Down

0 comments on commit 7e32629

Please sign in to comment.