Skip to content

Commit

Permalink
Remove meetingcal from context preprocessors
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasjuhrich committed Oct 18, 2023
1 parent 09db09f commit 560f52e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions sipa/initialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from sipa.model import AVAILABLE_DATASOURCES
from sipa.model.misc import should_display_traffic_data
from sipa.session import SeparateLocaleCookieSessionInterface
from sipa.utils import url_self, support_hotline_available, meetingcal
from sipa.utils import url_self, support_hotline_available
from sipa.utils.babel_utils import get_weekday
from sipa.utils.csp import ensure_items, NonceInfo
from sipa.utils.git_utils import init_repo, update_repo
Expand Down Expand Up @@ -102,7 +102,6 @@ def init_app(app, **kwargs):
# the functions could also directly be added as globals,
# however to minimize the diff things have been kept this way.
app.context_processor(inject_hotline_status)
app.context_processor(inject_meetingcal)

app.add_template_filter(render_links)

Expand Down Expand Up @@ -146,12 +145,6 @@ def inject_hotline_status():
return dict(support_hotline_available=support_hotline_available())


def inject_meetingcal():
"""Adds :func:`meetingcal <sipa.utils.meetingcal>`
to the :class:`jinja context <jinja2.runtime.Context>`"""
return dict(meetingcal=meetingcal())


def load_config_file(app, config=None):
"""Just load the config file, do nothing else"""
# default configuration
Expand Down

0 comments on commit 560f52e

Please sign in to comment.