diff --git a/aleksis/apps/alsijil/schema/statistics.py b/aleksis/apps/alsijil/schema/statistics.py index 37b8937844636fe6cec8a5c52f7db2e7e9b1ab47..ee3dd29b357680b40e504c6d03d8c8f1bca6fdbf 100644 --- a/aleksis/apps/alsijil/schema/statistics.py +++ b/aleksis/apps/alsijil/schema/statistics.py @@ -8,16 +8,24 @@ class AbsenceReasonWithCountType(graphene.ObjectType): absence_reason = graphene.Field(AbsenceReasonType) count = graphene.Int() + def resolve_absence_reason(root, info): + return root + def resolve_count(root, info): return 6 + class ExtraMarkWithCountType(graphene.ObjectType): extra_mark = graphene.Field(ExtraMarkType) count = graphene.Int() + def resolve_extra_mark(root, info): + return root + def resolve_count(root, info): return 7 + class StatisticsByPersonType(graphene.ObjectType): participation_count = graphene.Int() absence_count = graphene.Int()