pierrepo / MalariaSmearSearch

Blood smears database for malaria diagnosis :microscope:
GNU General Public License v3.0
1 stars 0 forks source link

Supress warning from SQLALCHEMY #146

Closed pierrepo closed 7 years ago

pierrepo commented 7 years ago

When running the web server with

python __init.py__

we have the following warning:

__init__.py:800: UserWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning. warnings.warn('SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disabled by default in the future. Set it to True to suppress this warning.')

nanls commented 7 years ago

What the warning was telling us : http://stackoverflow.com/a/33790196

pierrepo commented 7 years ago

OK. Can you create a pull request with

SQLALCHEMY_TRACK_MODIFICATIONS = False

properly placed?

nanls commented 7 years ago

It was done in rm-warnings

pierrepo commented 7 years ago

Thanks!