From a697d8d5eb1c7404248943e282e8d52e910d941d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20M=C3=A9nager?= <herve.menager@pasteur.fr> Date: Wed, 18 Nov 2020 08:39:21 +0100 Subject: [PATCH] correct format of per PPI family best activity to display only 2 decimals (see #251) --- ippisite/ippidb/templates/compound_l_item.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ippisite/ippidb/templates/compound_l_item.html b/ippisite/ippidb/templates/compound_l_item.html index ea8b229c..3df6a409 100644 --- a/ippisite/ippidb/templates/compound_l_item.html +++ b/ippisite/ippidb/templates/compound_l_item.html @@ -71,7 +71,7 @@ {% for row in compound.get_target_activities_table %} <tr> <td scope="col">{{ row.family.name }}</td> - <td scope="col">{{ row.best_activity }}</td> + <td scope="col">{{ row.best_activity|floatformat:2 }}</td> <td scope="col"> {% for disease in row.diseases %} {{ disease.name }} -- GitLab