From 07dd0925401d359aa5cf45584744209824a3e7d0 Mon Sep 17 00:00:00 2001 From: Robert van Dijk Date: Thu, 4 Jan 2024 14:07:13 +0100 Subject: [PATCH] Update upcoming activities fetch --- narrowcast_content/upcoming_activities/__init__.py | 2 +- narrowcast_content/upcoming_activities/static/js/index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/narrowcast_content/upcoming_activities/__init__.py b/narrowcast_content/upcoming_activities/__init__.py index b2ebd1a..4e7fe6a 100644 --- a/narrowcast_content/upcoming_activities/__init__.py +++ b/narrowcast_content/upcoming_activities/__init__.py @@ -87,7 +87,7 @@ def show(): return render_template('upcoming_activities/index.jinja2') -@upcoming_activities.route('/events/') +@upcoming_activities.route('/events') @cache.cached(timeout=4 * 60) def events(): # Fetch and parse ICS data, then organize events diff --git a/narrowcast_content/upcoming_activities/static/js/index.js b/narrowcast_content/upcoming_activities/static/js/index.js index 84c98d0..403ce46 100644 --- a/narrowcast_content/upcoming_activities/static/js/index.js +++ b/narrowcast_content/upcoming_activities/static/js/index.js @@ -25,7 +25,7 @@ function autoScroll() { async function fetchAndParseEventData() { try { // Fetch data from the API - const response = await fetch('events'); + const response = await fetch('events',); if (!response.ok) { throw new Error(`Error fetching data: ${response.status} ${response.statusText}`);