mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-28 11:36:44 +00:00
Small tweak to plugin staticfile collection output (#8498)
This commit is contained in:
parent
8f4e76b10f
commit
3037243de2
@ -75,7 +75,7 @@ def copy_plugin_static_files(slug, check_reload=True):
|
|||||||
if not plugin:
|
if not plugin:
|
||||||
return
|
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
|
# Get the source path for the plugin
|
||||||
source_path = plugin.path().joinpath('static')
|
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))
|
logger.debug('- copied %s to %s', str(item), str(destination_path))
|
||||||
copied += 1
|
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):
|
def clear_plugin_static_files(slug: str, recursive: bool = True):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user