Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
michplunkett committed Dec 20, 2024
1 parent cb66a22 commit 9a1fe2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions OpenOversight/app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from OpenOversight.app.models.database import db
from OpenOversight.app.models.users import AnonymousUser
from OpenOversight.app.utils.constants import MEGABYTE
from OpenOversight.app.utils.db import CustomJSONEncoder
from OpenOversight.app.utils.flask import limiter, sitemap


Expand All @@ -37,6 +38,7 @@ def create_app(config_name="default"):
app = Flask(__name__)
# Creates and adds the Config object of the correct type to app.config
app.config.from_object(config[config_name])
app.json_encoder = CustomJSONEncoder

bootstrap.init_app(app)
csrf.init_app(app)
Expand Down

0 comments on commit 9a1fe2f

Please sign in to comment.