Skip to content

Commit

Permalink
Fixes Canisius API URL (#412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert27 committed Jul 27, 2024
1 parent 9accc24 commit 9a291e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rogue-thi-app/pages/api/canisius.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ import { translateMeals } from '../../lib/backend-utils/translation-utils'
const pdf = require('pdf-parse')

const CACHE_TTL = 60 * 60 * 1000 // 60m
const URL = 'http://www.canisiusstiftung.de/upload/speiseplan.pdf'
const URL =
'http://www.canisiusstiftung.de/wp-content/uploads/Speiseplan/speiseplan.pdf'

const TITLE_REGEX = /[A-Z][a-z]*, den [0-9]{1,2}.[0-9]{1,2}.[0-9]{4}/gm
const DATE_REGEX = /[0-9]{1,2}.[0-9]{1,2}.[0-9]{4}/gm
Expand Down

0 comments on commit 9a291e0

Please sign in to comment.