From 348887a6bea8d64561b90533f84cc3d7f60bdc54 Mon Sep 17 00:00:00 2001 From: Taz-Chiles <97239140+Taz-Chiles@users.noreply.github.com> Date: Tue, 23 Jan 2024 13:04:48 +0000 Subject: [PATCH] Add override for event count --- docs/metrics/events/signature/_data.yml | 2 +- docs/metrics/events/signature/index.njk | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/metrics/events/signature/_data.yml b/docs/metrics/events/signature/_data.yml index bf0a8ceb..e49d7933 100644 --- a/docs/metrics/events/signature/_data.yml +++ b/docs/metrics/events/signature/_data.yml @@ -1,6 +1,6 @@ key_metrics: signature_events: title: Signature events - ref: headlines.total_events + ref: data_overrides.total_events description: Total Signature programme events colour: --l23-yellow diff --git a/docs/metrics/events/signature/index.njk b/docs/metrics/events/signature/index.njk index 560ad3ca..166da76d 100644 --- a/docs/metrics/events/signature/index.njk +++ b/docs/metrics/events/signature/index.njk @@ -12,6 +12,8 @@ metas: known_limitations: - Not all events have attendances recorded prepare_script: scripts/metrics/events/signature/prepare.ipynb +data_overrides: + total_events: 1069 --- {% from 'macros.njk' import dateFormatter, dateFormatterNoDay %} @@ -27,7 +29,7 @@ prepare_script: scripts/metrics/events/signature/prepare.ipynb {% comp 'grid.' + headline_grid_style, { min_width: '40rem' } %} {{ comp.metric.headline({ title: "Number of events", headingLevel: 2, - value: headlines.total_events | localize, + value: data_overrides.total_events | localize, description: "Total count of public and community events hosted by LEEDS 2023.", background: "var(--l23-cyan)" }) | safe }}