mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 07:27:15 +08:00
refactor: isolate subscribe history queries
This commit is contained in:
@@ -653,4 +653,6 @@ class SubscribeOper(DbOper):
|
||||
"season": season,
|
||||
"episode_group": episode_group,
|
||||
}
|
||||
return bool(SubscribeHistory.exists(self._db, **identity_params))
|
||||
return bool(self._execute_sync_query(
|
||||
lambda session: SubscribeHistory.exists(session, **identity_params)
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user