File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ def filter_frames(data, request):
114114 data = data .filter (INSTRUME = f )
115115 f = request .GET .get ('FILTER' , 'ALL' )
116116 if f not in ['' , 'ALL' ]:
117+ if f == 'None' :
118+ f = None
117119 data = data .filter (FILTER = f )
118120 f = request .GET .get ('RLEVEL' , 'ALL' )
119121 if f not in ['' , 'ALL' ]:
@@ -210,6 +212,9 @@ def aggregate_view(request):
210212 filters = list (data .values_list ('FILTER' , flat = True ).distinct ())
211213 binning = list (data .values_list ('XBINNING' , 'YBINNING' ).distinct ())
212214
215+ # remove Nones
216+ filters = [(x or "None" ) for x in filters ]
217+
213218 # return all
214219 return JsonResponse ({
215220 'imagetypes' : sorted (image_types ),
Original file line number Diff line number Diff line change 1- VERSION = '1.1.1 '
1+ VERSION = '1.1.2 '
You can’t perform that action at this time.
0 commit comments