Skip to content

Commit

Permalink
added flag to download_csv_and_view_interactive for de2 or de1
Browse files Browse the repository at this point in the history
  • Loading branch information
pgm committed Dec 19, 2024
1 parent 0a6ff16 commit 33ec9a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion portal-backend/depmap/interactive/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -864,6 +864,7 @@ def download_csv_and_view_interactive():
display_name = request.args["display_name"]
units = request.args["units"]
file_url = request.args["url"]
use_de2 = request.args.get("de2", "T") == "T"

url_upload_whitelist = flask.current_app.config["URL_UPLOAD_WHITELIST"]

Expand All @@ -882,7 +883,7 @@ def download_csv_and_view_interactive():
abort(400)

result = upload_transient_csv.apply(
args=[display_name, units, True, csv_path, True]
args=[display_name, units, True, csv_path, False, use_de2]
)

if result.state == TaskState.SUCCESS.value:
Expand Down

0 comments on commit 33ec9a3

Please sign in to comment.