ramp_database.tools.database.get_submission_file_type_extension

ramp_database.tools.database.get_submission_file_type_extension(session, type_name, extension_name)

Get submission file type extension from the database.

Parameters
sessionsqlalchemy.orm.Session

The session to directly perform the operation on the database.

type_namestr or None

The name of the type to query. If None, all the file type will be queried.

extension_namestr or None

The name of the extension to query. If None, all the extension will be queried.

Returns
extensionramp_database.model.SubmissionFileTypeExtension or list of ramp_database.model.SubmissionFileTypeExtension

The queried submission file type.