Use get_country for Schengen report
This commit is contained in:
parent
f499015466
commit
f41930f811
4 changed files with 7 additions and 51 deletions
|
|
@ -28,7 +28,6 @@ import agenda.trip
|
|||
import agenda.trip_schengen
|
||||
import agenda.utils
|
||||
from agenda import calendar, format_list_with_ampersand, travel, uk_tz
|
||||
from agenda.schengen import get_country_flag
|
||||
from agenda.types import StrDict, Trip
|
||||
|
||||
app = flask.Flask(__name__)
|
||||
|
|
@ -38,12 +37,6 @@ app.config.from_object("config.default")
|
|||
agenda.error_mail.setup_error_mail(app)
|
||||
|
||||
|
||||
@app.template_filter("country_flag")
|
||||
def country_flag_filter(country_code: str) -> str:
|
||||
"""Convert country code to emoji flag."""
|
||||
return get_country_flag(country_code)
|
||||
|
||||
|
||||
@app.before_request
|
||||
def handle_auth() -> None:
|
||||
"""Handle authentication and set global user."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue