Commit c5091380 authored by Mikaël Salson's avatar Mikaël Salson Committed by Vidjil Team

models/sequence_file.py: Retrieve sequence files from uploader IDs

parent eb4ab24d
......@@ -45,6 +45,12 @@ def get_patient_id(file_id):
return patient_id
def get_sequences_from_uploaders(user_ids):
'''
user_ids is a list of user who have uploaded the sequence files we are interested in
'''
return db(db.sequence_file.provider.belongs(user_ids)).select(db.sequence_file.ALL)
def get_run_id(file_id):
'''
return run id of the selected file
......
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