Fix imports/exports and update Flask-SQLAlchemy to reduce warnings (#974)

* Fix imports/exports to accept JSON 
    * MariaDB does not properly understand JSON so it must accept strings instead of dicts
    * MariaDB outputs strings instead of JSON for its JSON type so the export serializer will attempt to cast output JSON strings to JSON objects
* Update Makefile to not lint any uploads
* Update Flask-SQLAlchemy to 2.4.0 to remove a large amount of warnings
This commit is contained in:
Kevin Chung
2019-04-30 20:36:25 -04:00
committed by GitHub
parent 376d644de7
commit 4ec45dc4bc
4 changed files with 60 additions and 18 deletions

View File

@@ -1,5 +1,5 @@
lint:
flake8 --ignore=E402,E501,E712 CTFd/ tests/
flake8 --ignore=E402,E501,E712 --exclude=CTFd/uploads CTFd/ tests/
test:
pytest --cov=CTFd --disable-warnings -n auto