mirror of
https://github.com/g0ldyy/comet.git
synced 2026-01-12 01:16:12 +01:00
refactor: remove unnecessary force_primary parameter in AnimeMapper queries
- Eliminated the 'force_primary' parameter from database fetch calls in the AnimeMapper class to streamline query execution. - This change enhances code clarity and maintains consistency with recent refactoring efforts.
This commit is contained in:
@@ -63,7 +63,6 @@ class AnimeMapper:
|
||||
try:
|
||||
rows = await database.fetch_all(
|
||||
"SELECT kitsu_id, imdb_id FROM anime_mapping_cache",
|
||||
force_primary=True,
|
||||
)
|
||||
|
||||
if not rows:
|
||||
@@ -90,7 +89,6 @@ class AnimeMapper:
|
||||
|
||||
row = await database.fetch_one(
|
||||
"SELECT refreshed_at FROM anime_mapping_state WHERE id = 1",
|
||||
force_primary=True,
|
||||
)
|
||||
|
||||
if not row:
|
||||
|
||||
Reference in New Issue
Block a user