Attention une mise à jour du serveur va être effectuée le vendredi 16 avril entre 12h et 12h30. Cette mise à jour va générer une interruption du service de quelques minutes.

Commit e3f0a48e authored by aomietanski's avatar aomietanski Committed by Mikaël Salson

Tags added in browser

parent c65f73bc
......@@ -51,18 +51,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