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

black format

parent 67a93628
No related branches found
No related tags found
1 merge request!65update release (ippidb prod)
Pipeline #128300 failed
...@@ -585,17 +585,17 @@ class SummaryView(TemplateView): ...@@ -585,17 +585,17 @@ class SummaryView(TemplateView):
def about_pi_general(request): def about_pi_general(request):
context = {} context = {}
cavitiescount = Cavity.objects.all().count() cavitiescount = Cavity.objects.all().count()
proteincount = ( proteincount = Chain.objects.all().values("protein__uniprot_id").distinct().count()
Chain.objects.all().values("protein__uniprot_id").distinct().count()
)
organismcount = ( organismcount = (
Chain.objects.all().values("protein__organism__name").distinct().count() Chain.objects.all().values("protein__organism__name").distinct().count()
) )
orthocount = Cavity.objects.filter(type='orthosteric').count() orthocount = Cavity.objects.filter(type="orthosteric").count()
allostcount = Cavity.objects.filter(type='liganded_allosteric').count() allostcount = Cavity.objects.filter(type="liganded_allosteric").count()
ortho_comp = Cavity.objects.filter(type='liganded_orthosteric_competitive').count() ortho_comp = Cavity.objects.filter(type="liganded_orthosteric_competitive").count()
ortho_nocomp = Cavity.objects.filter(type='liganded_orthosteric_noncompetitive').count() ortho_nocomp = Cavity.objects.filter(
type="liganded_orthosteric_noncompetitive"
).count()
context["cavitiescount"] = cavitiescount context["cavitiescount"] = cavitiescount
context["proteincount"] = proteincount context["proteincount"] = proteincount
context["organismcount"] = organismcount context["organismcount"] = organismcount
...@@ -603,5 +603,5 @@ def about_pi_general(request): ...@@ -603,5 +603,5 @@ def about_pi_general(request):
context["allostcount"] = allostcount context["allostcount"] = allostcount
context["ortho_comp"] = ortho_comp context["ortho_comp"] = ortho_comp
context["ortho_nocomp"] = ortho_nocomp context["ortho_nocomp"] = ortho_nocomp
return render(request, "about-pie.html", context=context) return render(request, "about-pie.html", context=context)
\ No newline at end of file
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