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
- session
sqlalchemy.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.
- session
- Returns
- extension
ramp_database.model.SubmissionFileTypeExtension
or list oframp_database.model.SubmissionFileTypeExtension
The queried submission file type.
- extension