Skip to content

Commit 2af5108

Browse files
Merge branch 'develop' into update-output-pointing
2 parents 762b3d1 + b242db2 commit 2af5108

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

jwql/website/apps/jwql/data_containers.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1593,7 +1593,10 @@ def get_rootnames_from_query(parameters):
15931593
else:
15941594
current_ins_rootfileinfos = current_ins_rootfileinfos.order_by('-root_name')
15951595

1596-
rootnames = [name[0] for name in current_ins_rootfileinfos.values_list('root_name')]
1596+
# Django is doing something wonky here. I can't call values_list with a single parameter, even with 'flat=True' as per Django Docs.
1597+
# TODO: This is hacky and should be fixed.
1598+
filtered_list = list(current_ins_rootfileinfos.values_list('root_name', 'expstart'))
1599+
rootnames = [name[0] for name in filtered_list]
15971600
filtered_rootnames.extend(rootnames)
15981601

15991602
return filtered_rootnames

0 commit comments

Comments
 (0)