Files
hypha.apply.projects.files
¶
flatten
¶
Flatten the given iterable into an iterable of non-list items
get_files
¶
Get files from the given Project's Submission.
A Submission can have fields which contain multiple files, these are returned from Submission.data as a list meaning the given fields can be in the form of:
[obj1, [obj2, obj3]]
This function will flatten this providing a single level iterable:
[obj1, obj2, obj3]