mirror of
https://github.com/traberph/mensa-check.git
synced 2026-10-06 10:14:46 +00:00
Update src/api.py
undo escaping of forward slash in regex Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@ import re
|
||||
cache = TTLCache(maxsize=1, ttl=3600)
|
||||
app = FastAPI()
|
||||
templates = Jinja2Templates(directory="template")
|
||||
regex = re.compile(r'spätzle <sup>([^/]*)<\/sup>', re.IGNORECASE)
|
||||
regex = re.compile(r'spätzle <sup>([^/]*)</sup>', re.IGNORECASE)
|
||||
|
||||
@cached(cache)
|
||||
def checkMensa():
|
||||
|
||||
Reference in New Issue
Block a user