Skip to content
Snippets Groups Projects
Commit 1203893a authored by Fabien  MAREUIL's avatar Fabien MAREUIL
Browse files

black format

parent 67a93628
Branches
No related tags found
1 merge request!65update release (ippidb prod)
Pipeline #128300 failed
......@@ -585,17 +585,17 @@ class SummaryView(TemplateView):
def about_pi_general(request):
context = {}
cavitiescount = Cavity.objects.all().count()
proteincount = (
Chain.objects.all().values("protein__uniprot_id").distinct().count()
)
proteincount = Chain.objects.all().values("protein__uniprot_id").distinct().count()
organismcount = (
Chain.objects.all().values("protein__organism__name").distinct().count()
)
orthocount = Cavity.objects.filter(type='orthosteric').count()
allostcount = Cavity.objects.filter(type='liganded_allosteric').count()
ortho_comp = Cavity.objects.filter(type='liganded_orthosteric_competitive').count()
ortho_nocomp = Cavity.objects.filter(type='liganded_orthosteric_noncompetitive').count()
Chain.objects.all().values("protein__organism__name").distinct().count()
)
orthocount = Cavity.objects.filter(type="orthosteric").count()
allostcount = Cavity.objects.filter(type="liganded_allosteric").count()
ortho_comp = Cavity.objects.filter(type="liganded_orthosteric_competitive").count()
ortho_nocomp = Cavity.objects.filter(
type="liganded_orthosteric_noncompetitive"
).count()
context["cavitiescount"] = cavitiescount
context["proteincount"] = proteincount
context["organismcount"] = organismcount
......@@ -603,5 +603,5 @@ def about_pi_general(request):
context["allostcount"] = allostcount
context["ortho_comp"] = ortho_comp
context["ortho_nocomp"] = ortho_nocomp
return render(request, "about-pie.html", context=context)
\ No newline at end of file
return render(request, "about-pie.html", context=context)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment