refactor: isolate subscribe history queries

This commit is contained in:
jxxghp
2026-08-23 14:46:39 +08:00
parent 8b955c04d6
commit 5e9933ca8b
9 changed files with 132 additions and 58 deletions
+3 -1
View File
@@ -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)
))