Skip to content

Commit

Permalink
small database query patch for completed series
Browse files Browse the repository at this point in the history
  • Loading branch information
MooshiMochi committed Mar 31, 2024
1 parent ecc9cdc commit 4089007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ async def untrack_completed_series(self, series_id: str, scanlator: str) -> int:
DELETE FROM tracked_guild_series WHERE series_id = $1 AND scanlator = $2
AND (SELECT status FROM series WHERE id = $1 AND scanlator = $2) IN ({completed_db_set});
""",
series_id, scanlator
(series_id, scanlator)
)
await db.commit()
return cursor.rowcount if cursor.rowcount > 0 else 0
Expand Down

0 comments on commit 4089007

Please sign in to comment.