Commit 59013eab authored by aomietanski's avatar aomietanski

Tags added in browser

parent ce1523b9
Pipeline #35539 passed with stage
in 5 seconds
......@@ -43,18 +43,22 @@ def search_clonedb(sequences, sample_set_id):
info = get_info_of_viewable_sample_set([int(sample_id) for sample_id in occ['tags']['sample_set']], int(occ['tags']['config_id'][0]))
occ['tags']['sample_set_viewable'] = info['viewable']
occ['tags']['sample_set_name'] = info['name']
occ['tags']['sample_tags'] = info['sample_tags']
config_db = db.config[occ['tags']['config_id'][0]]
occ['tags']['config_name'] = [ if config_db else None]
return response.json(results)
def get_info_of_viewable_sample_set(sample_sets, config):
info = {'viewable': [], 'name': []}
info = {'viewable': [], 'name': [], 'sample_tags': []}
for sample_id in sample_sets:
viewable = auth.can_view_sample_set(sample_id, auth.user)
if viewable:
tags = get_sample_set_tags(sample_id)
for row in tags:
info['sample_tags'].append("#" +
return info
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment