Skip to content

Commit

Permalink
Set heavyweight to return 0 always, because it will be removed
Browse files Browse the repository at this point in the history
  • Loading branch information
derneuere committed Nov 10, 2024
1 parent 1a3fdaf commit 566ffd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/views/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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():
Expand Down

0 comments on commit 566ffd9

Please sign in to comment.