summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-02-22 13:15:45 +0100
committerWojtek Kosior <koszko@koszko.org>2022-02-22 16:50:10 +0100
commit48a0cd8ee5581c64f41988798b5aa7c73e25b1aa (patch)
tree6173dbd2c02ea29fb44971fb34733a03dc151fc2
parentfdac5263fca70e66be99b6e4f60c4cfc367898cd (diff)
downloadhaketilo-hydrilla-48a0cd8ee5581c64f41988798b5aa7c73e25b1aa.tar.gz
haketilo-hydrilla-48a0cd8ee5581c64f41988798b5aa7c73e25b1aa.zip
support Flask 1.0
-rw-r--r--src/hydrilla/server/serve.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/hydrilla/server/serve.py b/src/hydrilla/server/serve.py
index 2ef30cb..4ec2a17 100644
--- a/src/hydrilla/server/serve.py
+++ b/src/hydrilla/server/serve.py
@@ -459,7 +459,13 @@ class HydrillaApp(flask.Flask):
if self.debug and os.environ.get('WERKZEUG_RUN_MAIN') != 'true':
return
- self.jinja_options['extensions'] = ['jinja2.ext.i18n']
+ self.jinja_options = {
+ **self.jinja_options,
+ 'extensions': [
+ *self.jinja_options.get('extensions', []),
+ 'jinja2.ext.i18n'
+ ]
+ }
self._hydrilla_translation = \
util.translation(here / 'locales', hydrilla_config['language'])