Skip to content

Commit

Permalink
fix undefined variables
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichFroebel committed Sep 19, 2023
1 parent 6580f59 commit 6ae68e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion brother_ql_web/font_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ def get_fonts(folder: str | None = None) -> dict[str, dict[str, str]]:
continue
for i in range(len(families)):
fonts[families[i]][styles[i]] = path
logger.debug("Added this font: %s", (families[i], styles[i], path))
# logger.debug("Added this font: %s", (families[i], styles[i], path))
return dict(fonts)
4 changes: 3 additions & 1 deletion brother_ql_web/labels.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,10 @@ def generate_label(
if save_image_to:
image.save(save_image_to)

red: bool = False
rotate: int | str = 0
if parameters.kind == ENDLESS_LABEL:
rotate: int | str = 0 if parameters.orientation == "standard" else 90
rotate = 0 if parameters.orientation == "standard" else 90
elif parameters.kind in (ROUND_DIE_CUT_LABEL, DIE_CUT_LABEL):
rotate = "auto"
red = "red" in parameters.label_size
Expand Down

0 comments on commit 6ae68e2

Please sign in to comment.