Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Using the development server, SQLite complains that objects created in a thread can only be used in that same thread. The reason why this only happens in modern systems and did not appear in the past is probably Flask's newish threading concept. The error does not seem to appear with gunicorn when workers are being used. The error also did not appear on older systems with older Flask versions. However, Flask ≥ 1.0 did enable threading by default so the development server would perform better. Deactivating this makes the execution single-threaded again and the error disappears. This shouldn't really be a huge problem given that this is for development and we don't do many large requests. This fixes #174
- Loading branch information