ramp_database.tools.database
.add_submission_file_type¶
-
ramp_database.tools.database.
add_submission_file_type
(session, name, is_editable, max_size)¶ Add a new submission file type, e.g., (‘code’, True, 10 ** 5).
- Parameters
- session
sqlalchemy.orm.Session
The session to directly perform the operation on the database.
- namestr
The name of file type.
- is_editable: bool
If the file type is editable.
- max_sizeint
The maximum size of the file.
- session
Notes
Should be preceded by adding extensions.