Checked all queries are SQLAlchemy V2 format
This commit is contained in:
parent
140722217b
commit
a0c074adad
@ -560,9 +560,8 @@ class Tracks(Base):
|
|||||||
else created new track and return it
|
else created new track and return it
|
||||||
"""
|
"""
|
||||||
|
|
||||||
try:
|
track = cls.get_by_path(session, path)
|
||||||
track = session.query(cls).filter(cls.path == path).one()
|
if not track:
|
||||||
except NoResultFound:
|
|
||||||
track = Tracks(session, path)
|
track = Tracks(session, path)
|
||||||
|
|
||||||
return track
|
return track
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user