mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-27 18:18:46 +00:00
linting fixes
This commit is contained in:
1 parent
57240865e8
commit
a15cc1f3ba
3 files changed
+3
-4
No files matched your search
@@ -244,6 +244,7 @@ def global_settings(*args, **kwargs):
|
||||
|
||||
return InvenTreeSetting.allValues()
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def progress_bar(val, max, *args, **kwargs):
|
||||
"""
|
||||
@@ -259,7 +260,7 @@ def progress_bar(val, max, *args, **kwargs):
|
||||
else:
|
||||
style = ''
|
||||
|
||||
percent = float(val/max) * 100
|
||||
percent = float(val / max) * 100
|
||||
|
||||
if percent > 100:
|
||||
percent = 100
|
||||
|
||||
Reference in new issue
Block a user