Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/adf_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,13 +845,15 @@ def jinja_enumerate(arg):
#End if

#List of ADF default plot types
avail_plot_types = res["default_ptypes"]
#Note: this is a copy, as the list is appended to below and
#"res" is re-used on every pass through this loop:
avail_plot_types = list(res["default_ptypes"])

#Check if current plot type is in ADF default.
#If not, add it so the index.html file can include it
for ptype in plot_types.keys():
if ptype not in avail_plot_types:
avail_plot_types.append(plot_types)
avail_plot_types.append(ptype)


# External packages that can be run through ADF
Expand Down