From d28d502c32b9f0d72e31372be2f484a2651a3457 Mon Sep 17 00:00:00 2001 From: Sal Tijerina Date: Fri, 20 Dec 2024 10:55:12 -0600 Subject: [PATCH] update example; add comment --- server/portal/apps/workspace/api/views.py | 1 + server/portal/settings/settings_custom.example.py | 10 ++++++++-- server/portal/settings/settings_default.py | 4 ++-- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/server/portal/apps/workspace/api/views.py b/server/portal/apps/workspace/api/views.py index a603cd0ed..fe7ca77b8 100644 --- a/server/portal/apps/workspace/api/views.py +++ b/server/portal/apps/workspace/api/views.py @@ -301,6 +301,7 @@ def post(self, request, *args, **kwargs): if not execSystemId: app = _get_app(job_post["appId"], job_post["appVersion"], request.user) execSystemId = app["definition"].jobAttributes.execSystemId + if not job_post.get("appVersion"): app = _get_app(job_post["appId"], None, request.user) job_post["appVersion"] = app["definition"].version diff --git a/server/portal/settings/settings_custom.example.py b/server/portal/settings/settings_custom.example.py index 021148513..37bc88ee3 100644 --- a/server/portal/settings/settings_custom.example.py +++ b/server/portal/settings/settings_custom.example.py @@ -233,8 +233,14 @@ "debug": _DEBUG, "makeLink": True, "viewPath": True, - "compressApp": 'compress', - "extractApp": 'extract', + "compressApp": { + "id": "compress", + "version": "0.0.3" # Can be set to "" to use the latest version + }, + "extractApp": { + "id": "extract", + "version": "0.0.1" # Can be set to "" to use the latest version + }, "makePublic": False, "hideApps": False, "hideDataFiles": False, diff --git a/server/portal/settings/settings_default.py b/server/portal/settings/settings_default.py index ea734a781..18c261075 100644 --- a/server/portal/settings/settings_default.py +++ b/server/portal/settings/settings_default.py @@ -224,11 +224,11 @@ "viewPath": True, "compressApp": { "id": "compress", - "version": "0.0.3" + "version": "0.0.3" # Can be set to "" to use the latest version }, "extractApp": { "id": "extract", - "version": "0.0.1" + "version": "0.0.1" # Can be set to "" to use the latest version }, "makePublic": True, "hideApps": False,