chriskelly / LifeFinances

Scripts for validating retirement plans using Monte Carlo analysis.
GNU Affero General Public License v3.0
9 stars 3 forks source link

Make model.py compatible with SQLAlchemy 2.0 #113

Closed chriskelly closed 1 year ago

chriskelly commented 1 year ago

db_cmd() uses Connection.execute(), which generates the following warning:

RemovedIn20Warning: Deprecated API features detected! These feature(s) are not compatible with SQLAlchemy 2.0. To prevent incompatible upgrades prior to updating applications, ensure requirements files are pinned to "sqlalchemy<2.0". Set environment variable SQLALCHEMY_WARN_20=1 to show all deprecation warnings. Set environment variable SQLALCHEMY_SILENCE_UBER_WARNING=1 to silence this message. (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)

requirements.txt was updated to required sqlalchemy<2.0, but function should be updated to be compatiable. Migration Guide