[go: up one dir, main page]

Skip to content

Fix SQLAlchemy LegacyAPIWarning

Summary

Warning in SQLAlchemy

Relevant logs and/or screenshots

LegacyAPIWarning: The Query.get() method is considered legacy as of the 1.x series of SQLAlchemy and becomes a legacy construct in 2.0. The method is now available as Session.get() (deprecated since: 2.0) (Background on SQLAlchemy 2.0 at: https://sqlalche.me/e/b8d9)
    resource = resource_class.query.get(ressource_id)

Environment info

0.18.1

Possible fixes

Capture_d_écran_2023-02-05_à_18.27.38

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information