Skip to content

Commit

Permalink
Fix needs_update().
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Apr 14, 2024
1 parent 6570868 commit b5dea09
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions yellowstone/job/index_forum_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"""

import logging
from typing import TYPE_CHECKING, TypedDict
from typing import TYPE_CHECKING, Optional, TypedDict

from ..request import forum_threads

if TYPE_CHECKING:
from ..core import BackupDispatcher
Expand All @@ -33,7 +35,7 @@ def needs_update(
last_progress: ForumThreadProgressRow,
thread: forum_threads.ForumThreadData,
) -> bool:
if thread.post_count > last_progress["last_post_id"]:
if thread.post_count > last_progress["post_count"]:
logger.debug(
"Forum thread %d has more posts (%d > %d)",
thread.id,
Expand Down

0 comments on commit b5dea09

Please sign in to comment.