From a457f8dbcb754997cdcfb9205634839ee4a90394 Mon Sep 17 00:00:00 2001 From: axolotle Date: Fri, 29 Sep 2023 16:35:24 +0200 Subject: [PATCH] app: add "support_purge" to app info --- src/app.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app.py b/src/app.py index df5eecae2..78c61dfcd 100644 --- a/src/app.py +++ b/src/app.py @@ -237,6 +237,10 @@ def app_info(app, full=False, upgradable=False): ret["supports_config_panel"] = os.path.exists( os.path.join(setting_path, "config_panel.toml") ) + ret["supports_purge"] = ( + local_manifest["packaging_format"] >= 2 + and local_manifest["resources"].get("data_dir") is not None + ) ret["permissions"] = permissions ret["label"] = permissions.get(app + ".main", {}).get("label")