Skip to content

Commit

Permalink
Update upcoming activities fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Jan 4, 2024
1 parent d3067f4 commit 07dd092
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion narrowcast_content/upcoming_activities/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion narrowcast_content/upcoming_activities/static/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit 07dd092

Please sign in to comment.