aboutsummaryrefslogtreecommitdiffstats
path: root/backend/models/question.py (follow)
Commit message (Collapse)AuthorAgeLines
* Apply fixable lint settings with RuffGravatar Joe Banks2024-07-08-15/+18
|
* Allow Setup For UnittestsGravatar Hassan Abouelela2022-06-24-2/+4
| | | | | | | | | | Adds the setup method as a special method for unittest question types. Additionally, a couple QoL fixes are included. I changed `unit` to `self` to clarify what it actually is, and I changed an `lstrip` to a `removeprefix` to avoid removing unintentional portions of the name (for instance `something` -> `omething`) Signed-off-by: Hassan Abouelela <[email protected]>
* Clarify Validator SemanticsGravatar Hassan Abouelela2021-06-03-1/+1
| | | | | Co-authored-by: Chris <[email protected]> Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Missing DocstringsGravatar Hassan Abouelela2021-06-02-0/+3
| | | | Signed-off-by: Hassan Abouelela <[email protected]>
* Adds Code Question ModelGravatar Hassan Abouelela2021-06-02-0/+23
| | | | | | | Adds an explicit model for questions of type `code`, to allow more complex parsing. Updates schema docs. Signed-off-by: Hassan Abouelela <[email protected]>
* Add required field to question modelGravatar ks1292020-12-28-0/+1
|
* fix various type annotation issuesGravatar decorator-factory2020-12-15-4/+4
|
* Fix question validatorGravatar ks1292020-12-02-8/+2
|
* Parse type and data in same validator and allow passing ID as id not _idGravatar ks1292020-12-02-8/+11
|
* Use cls instead self for Question model validatorsGravatar ks1292020-12-02-4/+4
|
* Use plain string as type for question idGravatar ks1292020-12-01-2/+1
|
* Create model for form questionGravatar ks1292020-11-30-0/+55