We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 762b3d1 + b242db2 commit 2af5108Copy full SHA for 2af5108
jwql/website/apps/jwql/data_containers.py
@@ -1593,7 +1593,10 @@ def get_rootnames_from_query(parameters):
1593
else:
1594
current_ins_rootfileinfos = current_ins_rootfileinfos.order_by('-root_name')
1595
1596
- rootnames = [name[0] for name in current_ins_rootfileinfos.values_list('root_name')]
+ # 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]
1600
filtered_rootnames.extend(rootnames)
1601
1602
return filtered_rootnames
0 commit comments