ratings (Ratings)

A tested document

This is a tested document. The following instructions are used for initialization:

>>> import lino
>>> lino.startup('lino_prima.projects.prima1.settings')
>>> from lino.api.doctest import *

Rating summaries

>>> ar = rt.login("robin")
>>> # ar.show(ratings.RatingsSummaries)
>>> subject = school.Subject.objects.get(designation="Religion")
>>> qs = school.Course.objects.filter(subject=subject, group__designation="6A")
>>> course = qs.first()
>>> qs = school.Skill.objects.filter(subject=subject)
>>> skill = qs.first()
>>> ar.show(ratings.SummariesByCourse, course)
==================== =========== ====
 Skill                P1          P2
-------------------- ----------- ----
 Knowledge            35,0
 Behaviour            38,3
 Attitude             27,5
 **Total (3 rows)**   **100,8**
==================== =========== ====
>>> flt = dict(master=course.group, skill=skill)
>>> flt.update(challenge__isnull=True, enrolment__isnull=True)
>>> rs = ratings.RatingsSummary.objects.get(**flt)
>>> ar.show(ratings.ChallengeSummaries, rs)
=========================== ============ ========== ====
 Exam or project section     Max. score   P1         P2
--------------------------- ------------ ---------- ----
 `Exam 100 (23.08.) <…>`__   5,0          35,0
 **Total (1 rows)**          **5,0**      **35,0**
=========================== ============ ========== ====

API reference

class lino_prima.plugins.ratings.Exam
group
subject
heading
date
period
seqno
user
class lino_prima.plugins.ratings.Challenge
skill
exam
project_section
max_score
class lino_prima.plugins.ratings.ChallengeRating
enrolment
challenge
teacher
period
date_done
score
smiley
predicate