def _filter_nice_uid_list(self, uids, root_uid=None, selected_analysis=None, filename_only=False): root_uid = none_to_none(root_uid) if not is_list_of_uids(uids): return uids with ConnectTo(FrontEndDbInterface, self._config) as sc: analyzed_uids = sc.get_data_for_nice_list(uids, root_uid) number_of_unanalyzed_files = len(uids) - len(analyzed_uids) first_item = analyzed_uids.pop(0) return render_template( 'generic_view/nice_fo_list.html', fo_list=analyzed_uids, u_show_id=random_collapse_id(), number_of_unanalyzed_files=number_of_unanalyzed_files, root_uid=root_uid, selected_analysis=selected_analysis, first_item=first_item, filename_only=filename_only )
def test_random_collapse_id(): collapse_id = random_collapse_id() assert isinstance(collapse_id, str) assert not collapse_id[0].isnumeric()