mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-15 19:45:46 +00:00
added autofixes
This commit is contained in:
@ -15,13 +15,9 @@ def define_env(env):
|
||||
|
||||
assets = []
|
||||
|
||||
allowed = [
|
||||
'.png',
|
||||
'.jpg',
|
||||
]
|
||||
allowed = ['.png', '.jpg']
|
||||
|
||||
for asset in os.listdir(directory):
|
||||
|
||||
if any(asset.endswith(x) for x in allowed):
|
||||
assets.append(os.path.join(subdir, asset))
|
||||
|
||||
|
Reference in New Issue
Block a user