From 39907f66fc1a98ca8e777a95510aa6aa8046fe78 Mon Sep 17 00:00:00 2001 From: wolflu05 <76838159+wolflu05@users.noreply.github.com> Date: Wed, 12 Jul 2023 13:59:27 +0000 Subject: [PATCH] debug: test prints for statistics --- InvenTree/part/apps.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/InvenTree/part/apps.py b/InvenTree/part/apps.py index 1e0405a379..5d77f76183 100644 --- a/InvenTree/part/apps.py +++ b/InvenTree/part/apps.py @@ -18,10 +18,14 @@ class PartConfig(AppConfig): def ready(self): """This function is called whenever the Part app is loaded.""" # skip loading if plugins are not loaded or we run in a background thread + print("LOAD_BEFORE") if not isPluginRegistryLoaded() or not isInMainThread(): return + print("LOAD_AFTER") + if canAppAccessDatabase(): + print("LOAD_DB_ACCESS") self.update_trackable_status() self.reset_part_pricing_flags()