2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-18 13:05:42 +00:00

Bump CI/pre-commit versions (#6522)

* bump CI versions
and run new autofixes

* fix reqs
This commit is contained in:
Matthias Mair
2024-02-19 23:47:57 +00:00
committed by GitHub
parent 6e932f85cf
commit ebe01530e6
7 changed files with 12 additions and 17 deletions

View File

@ -421,7 +421,7 @@ def progress_bar(val, max_val, *args, **kwargs):
style_tags.append(f'max-width: {max_width};')
html = f"""
<div id='{item_id}' class='progress' style='{" ".join(style_tags)}'>
<div id='{item_id}' class='progress' style='{' '.join(style_tags)}'>
<div class='progress-bar {style}' role='progressbar' aria-valuemin='0' aria-valuemax='100' style='width:{percent}%'></div>
<div class='progress-value'>{val} / {max_val}</div>
</div>

View File

@ -1482,7 +1482,7 @@ class OrderCalendarExport(ICalFeed):
def item_guid(self, item):
"""Return globally unique UID for event."""
return f'po_{item.pk}_{item.reference.replace(" ","-")}@{self.instance_url}'
return f'po_{item.pk}_{item.reference.replace(" ", "-")}@{self.instance_url}'
def item_link(self, item):
"""Set the item link."""

View File

@ -261,7 +261,7 @@ class InvenTreeLabelSheetPlugin(LabelPrintingMixin, SettingsMixin, InvenTreePlug
}}
.label-sheet-cell {{
border: {"1px solid #000;" if border else "0mm;"}
border: {'1px solid #000;' if border else '0mm;'}
width: {label_width}mm;
height: {label_height}mm;
padding: 0mm;