Skip to content

Commit 7f5daf4

Browse files
committed
Fixing the way the dictionary is built and displayed
1 parent e9d2f7c commit 7f5daf4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

jwql/website/apps/jwql/templates/view_image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ <h5>Comments</h5>
148148

149149
// Show the appropriate image
150150
var frame = document.getElementById("quickview");
151-
var newURL = "https://jwqlquickview.stsci.edu?file=${file_path}";
151+
var newURL = "https://jwqlquickview.stsci.edu?file=" + file_path;
152152
frame.contentWindow.location.replace(newURL);
153153
frame.contentWindow.location.reload;
154154

jwql/website/apps/jwql/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1301,7 +1301,7 @@ def view_image(request, inst, file_root):
13011301
file_paths = {}
13021302
for file_path in image_info['all_files']:
13031303
for suffix in suffixes:
1304-
if f"{file_root}_{suffix}" in file_path:
1304+
if f"{file_root}_{suffix}.fits" in file_path:
13051305
if suffix not in file_paths:
13061306
file_paths[suffix] = file_path
13071307

0 commit comments

Comments
 (0)