mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-07 00:16:57 +08:00
refactor: make model sessions explicit
This commit is contained in:
@@ -145,6 +145,7 @@ def test_normalization_also_applies_on_update(db):
|
||||
row = _write(db, _history(media_source=MediaSource.TMDB, media_id="550"))
|
||||
|
||||
row.update(db.session, {"media_source": "douban", "media_id": " 1291546 "})
|
||||
db.session.commit()
|
||||
db.session.expire_all()
|
||||
updated = TransferHistory.get(db.session, row.id)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user