def col_download_all(cols_selected):
 submissions = []
 for sid in cols_selected:
  id = Source.query.filter((Source.filesystem_id == sid)).one().id
  submissions += Submission.query.filter((Submission.source_id == id)).all()
 return download('all', submissions)

def col_download_all ( cols_selected ) : submissions = [ ] for sid in cols_selected : id = Source . query . filter ( ( Source . filesystem_id == sid ) ) . one ( ) . id submissions += Submission . query . filter ( ( Submission . source_id == id ) ) . all ( ) return download ( 'all' , submissions )
download all submissions from all selected sources .