2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

Small tweak to plugin staticfile collection output (#8498)

This commit is contained in:
Oliver
2024-11-16 15:38:07 +11:00
committed by GitHub
parent 8f4e76b10f
commit 3037243de2

View File

@ -75,7 +75,7 @@ def copy_plugin_static_files(slug, check_reload=True):
if not plugin:
return
logger.info("Copying static files for plugin '%s'", slug)
logger.info("Collecting static files for plugin '%s'", slug)
# Get the source path for the plugin
source_path = plugin.path().joinpath('static')
@ -114,7 +114,8 @@ def copy_plugin_static_files(slug, check_reload=True):
logger.debug('- copied %s to %s', str(item), str(destination_path))
copied += 1
logger.info("Copied %s static files for plugin '%s'.", copied, slug)
if copied > 0:
logger.info("Copied %s static files for plugin '%s'.", copied, slug)
def clear_plugin_static_files(slug: str, recursive: bool = True):