Skip to content

Commit

Permalink
fix quoting
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Sep 21, 2024
1 parent 370c3e8 commit cc305f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/artisanlib/roast_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -1849,7 +1849,7 @@ def updatePlusSelectedLine(self) -> None:
for i, ll in sorted(zip(self.plus_blend_selected_spec['ingredients'],self.plus_blend_selected_spec_labels), key=lambda tup:tup[0]['ratio'],reverse = True)[:4]:
if line:
line = line + ', '
c = f'<a href="{plus.util.coffeeLink(i['coffee'])}"{dark_mode_link_color}>{abbrevString(ll, 18)}</a>'
c = f"<a href=\"{plus.util.coffeeLink(i['coffee'])}\"{dark_mode_link_color}>{abbrevString(ll, 18)}</a>"
line = line + str(int(round(i['ratio']*100))) + '% ' + c
if line and len(line)>0 and self.plus_store_selected is not None and self.plus_store_selected_label is not None:
line = line + f' (<a href="{plus.util.storeLink(self.plus_store_selected)}"{dark_mode_link_color}>{self.plus_store_selected_label}</a>)'
Expand Down
2 changes: 1 addition & 1 deletion src/plus/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -1571,7 +1571,7 @@ def getBlends(weight_unit_idx:int, store:Optional[str] = None, customBlend:Optio
if loc_amount_str == '':
label = blend['label']
else:
label = f'{blend['label']} ({loc_amount_str})'
label = f"{blend['label']} ({loc_amount_str})"
# we filter all items from replacementBlends with
# empty amount and the first original blend
replacementBlends = [
Expand Down

0 comments on commit cc305f1

Please sign in to comment.