diff --git a/metrics/views.py b/metrics/views.py index 82da7dd..166797c 100644 --- a/metrics/views.py +++ b/metrics/views.py @@ -61,7 +61,7 @@ def show_metrics_per_project(request): def get_metrics_and_aggregate_per_project(): aggregated_metrics_and_results = {} - for project in Project.objects.all(): + for project in Project.objects.filter(pk=7):#all(): project_metrics = [] for activity in Activity.objects.filter(area__project=project): activity_metrics = {} diff --git a/report/templates/report/detail_report.html b/report/templates/report/detail_report.html index bbe5920..a3ed384 100644 --- a/report/templates/report/detail_report.html +++ b/report/templates/report/detail_report.html @@ -128,6 +128,12 @@ <h3 id="Quantitative">{% trans "Quantitative" %}</h3> <div class="w3-twothird formfield view-field">{{ data.feedbacks }}</div> </div> {% endif %} + {% if data.number_of_people_reached_through_social_media %} + <div class="w3-row"> + <div class="w3-third formfieldtitle">{% trans "Number of people reached through social media" %}</div> + <div class="w3-twothird formfield view-field">{{ data.number_of_people_reached_through_social_media }}</div> + </div> + {% endif %} {% if data.editors.count %} <div class="w3-row"> <div class="w3-third formfieldtitle">{% trans "Editors" %}</div> diff --git a/report/templates/report/quantitative.html b/report/templates/report/quantitative.html index 573d256..7c9229d 100644 --- a/report/templates/report/quantitative.html +++ b/report/templates/report/quantitative.html @@ -21,7 +21,7 @@ </div> <div class="w3-quarter formfield form-right"> <label class="formfieldtitle" for="number_of_people_reached_through_social_media">{% translate "Number of people reached through social media" %}</label> - <input type="number" min="0" value="{{ report_form.instance.number_of_people_reached_through_social_media }}" id="number_of_people_reached_through_social_media" name="social media"/> + <input type="number" min="0" value="{{ report_form.instance.number_of_people_reached_through_social_media }}" id="number_of_people_reached_through_social_media" name="number_of_people_reached_through_social_media"/> </div> </div> <div class="w3-row">