From 2453b700c28131f0c23525112315a33983d66dcb Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Wed, 26 May 2021 20:49:36 +0200 Subject: Update dependencies --- kosten/app/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'kosten/app/__init__.py') diff --git a/kosten/app/__init__.py b/kosten/app/__init__.py index 7c6408a..7079d8c 100644 --- a/kosten/app/__init__.py +++ b/kosten/app/__init__.py @@ -1,8 +1,12 @@ from flask import Flask +import simplejson # create app app = Flask('kosten', instance_relative_config = True) +# simplejson knows how to handle Decimal +app.json_encoder = simplejson.JSONEncoder + # force autoescape in all files app.jinja_env.autoescape = True -- cgit v1.2.3-70-g09d2