summaryrefslogtreecommitdiff
path: root/kosten/app/views/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'kosten/app/views/__init__.py')
-rw-r--r--kosten/app/views/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/kosten/app/views/__init__.py b/kosten/app/views/__init__.py
index 6b432e8..e9e38e9 100644
--- a/kosten/app/views/__init__.py
+++ b/kosten/app/views/__init__.py
@@ -22,7 +22,7 @@ __all__ = [
mobile_checks = ['J2ME', 'Opera Mini']
app.add_template_global(zip)
-app.add_template_global(current_user)
+app.add_template_global(current_user, 'current_user')
@app.before_request
def handle_mobile():
@@ -36,7 +36,7 @@ def static_url(s, **kwargs):
@app.template_filter('eur')
def eur(s):
- return ('%s EUR' % s)
+ return f'{s} EUR'
@app.template_filter('date')
def format_date(s, format='%Y/%m'):