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 c65f73bc authored by aomietanski's avatar aomietanski Committed by Mikaël Salson

Tags function added

parent 2a263ddf
......@@ -138,3 +138,13 @@ def get_public_group_id(group_ids):
if (len(public_group) > 0 and public_group[0].id not in group_ids):
return public_group[0].id
return -1
def get_sample_set_tags(sample_id):
sample_set = db.sample_set[sample_id]
sample_type = sample_set.sample_type
table = db(db[sample_type].sample_set_id == sample_id).select()
for row in table:
tag_ref = db(( == db.tag_ref.record_id)
& (db.tag_ref.table_name == sample_type)
& (db.tag_ref.tag_id ==
return tag_ref
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