From 566ffd99968bf88a52de6e17e818692c7583ce58 Mon Sep 17 00:00:00 2001 From: Niaz Date: Sun, 10 Nov 2024 18:49:06 +0100 Subject: [PATCH] Set heavyweight to return 0 always, because it will be removed --- api/views/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/views/views.py b/api/views/views.py index 67f892d09c..9d05cba48d 100644 --- a/api/views/views.py +++ b/api/views/views.py @@ -88,7 +88,7 @@ def get(self, request, format=None): out["allow_registration"] = site_config.ALLOW_REGISTRATION out["allow_upload"] = site_config.ALLOW_UPLOAD out["skip_patterns"] = site_config.SKIP_PATTERNS - out["heavyweight_process"] = site_config.HEAVYWEIGHT_PROCESS + out["heavyweight_process"] = 0 out["map_api_provider"] = site_config.MAP_API_PROVIDER out["map_api_key"] = site_config.MAP_API_KEY out["captioning_model"] = site_config.CAPTIONING_MODEL @@ -104,7 +104,7 @@ def post(self, request, format=None): if "skip_patterns" in request.data.keys(): site_config.SKIP_PATTERNS = request.data["skip_patterns"] if "heavyweight_process" in request.data.keys(): - site_config.HEAVYWEIGHT_PROCESS = request.data["heavyweight_process"] + site_config.HEAVYWEIGHT_PROCESS = 0 if "map_api_provider" in request.data.keys(): site_config.MAP_API_PROVIDER = request.data["map_api_provider"] if "map_api_key" in request.data.keys():