Skip to content

Commit

Permalink
chore: Remove unnecessary secure_filename call in jobs_download function
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed Jul 24, 2024
1 parent 198f087 commit 690f676
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/ui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2372,8 +2372,6 @@ def jobs_download():
if not plugin_id or not job_name or not file_name:
return jsonify({"status": "ko", "message": "plugin_id, job_name and file_name are required"}), 422

file_name = secure_filename(file_name)

cache_file = app.config["DB"].get_job_cache_file(job_name, file_name, service_id=service_id, plugin_id=plugin_id)

if not cache_file:
Expand Down

0 comments on commit 690f676

Please sign in to comment.