diff --git a/OpenOversight/app/models/config.py b/OpenOversight/app/models/config.py index a5594a931..f3a480c67 100644 --- a/OpenOversight/app/models/config.py +++ b/OpenOversight/app/models/config.py @@ -96,6 +96,11 @@ def __init__(self): self.NUM_OFFICERS = 120 self.RATELIMIT_ENABLED = False self.SQLALCHEMY_DATABASE_URI = "sqlite:///:memory:" + # Disable sqlite cached statements + # https://github.com/python/cpython/issues/118172 + self.SQLALCHEMY_ENGINE_OPTIONS = { + "connect_args": {"cached_statements": 0}, + } class ProductionConfig(BaseConfig): diff --git a/OpenOversight/app/templates/submit_image.html b/OpenOversight/app/templates/submit_image.html index 56bc8c9a2..6ec32f2da 100644 --- a/OpenOversight/app/templates/submit_image.html +++ b/OpenOversight/app/templates/submit_image.html @@ -76,19 +76,15 @@

High Security Submissions