Skip to content
Snippets Groups Projects
Commit 744ecbf1 authored by permcu's avatar permcu
Browse files

Add statistics query resolvers

parent c7458331
No related branches found
No related tags found
1 merge request!361Resolve "Add statistics page for absences"
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment