Commit 0d641ef9 authored by Administrator's avatar Administrator

[DESIGN] TEMPLATE PROJECT, donut.

parent ac73ac2e
......@@ -126,6 +126,20 @@ def project(request, project_id):
project = Node.objects.get(id=project_id)
corpora = project.children.all()
number = project.children.count()
total = 0
donut = list()
donut_part = dict()
for corpus in corpora:
count = corpus.children.count()
total += count
for node_resource in Node_Resource.objects.filter(node=corpus):
print(node_resource.resource.type,
count,
total,
)
board = list()
for corpus in corpora:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment