lookit / lookit-api

Codebase for Lookit v2 and Experimenter v2. Includes an API. Docs: http://lookit.readthedocs.io/
https://lookit.mit.edu/
MIT License
10 stars 18 forks source link

Bug fix for null values of ConsentRuling model #1429

Open bleonar5 opened 2 months ago

bleonar5 commented 2 months ago

This is a small addition of conditionals to two lines in the most_recent_ruling_comment and most_recent_ruling_arbiter functions of the Response data model. The model specifies that both fields are allowable as null, so the conditionals account for this by checking that they are not none before trying to access their properties.

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud