I think you can replace lines 231-234 with:

```python
return {
    criterion.name: criterion.points_possible
    for criterion in assessment.rubric.criteria.all()
}
```