Skip to content

Commit

Permalink
Fix lints.
Browse files Browse the repository at this point in the history
  • Loading branch information
emmiegit committed Apr 15, 2024
1 parent fb23f08 commit 7c8a38e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion yellowstone/job/index_forum_categories.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ def run(core: "BackupDispatcher", data: ForumCategoriesJob) -> None:

if progress is None or needs_update(progress, category):
core.job.index_forum_threads(
{"site_slug": site_slug, "category_id": category.id, "offset": None},
{
"site_slug": site_slug,
"category_id": category.id,
"offset": None,
},
)


Expand Down
6 changes: 3 additions & 3 deletions yellowstone/job/index_forum_threads.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
"""

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

from ..request import forum_threads
from ..request.forum_threads import ForumThreadData

if TYPE_CHECKING:
from ..core import BackupDispatcher
Expand Down Expand Up @@ -42,8 +41,9 @@ def run(core: "BackupDispatcher", data: ForumThreadsJob) -> None:
wikidot=core.wikidot,
)
# TODO save data
_ = threads
core.job.index_forum_threads(
{"site_slug": site_slug, "category_id": category.id, "offset": offset + 1},
{"site_slug": site_slug, "category_id": category_id, "offset": offset + 1},
)


Expand Down

0 comments on commit 7c8a38e

Please sign in to comment.