From cd62c9dc3f4f7da6f382a49ff824c6b9699a4266 Mon Sep 17 00:00:00 2001 From: Jon Michael Aanes Date: Mon, 24 Mar 2025 20:25:30 +0100 Subject: [PATCH] Ruff --- personal_data/fetchers/wanikani_lessons.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/personal_data/fetchers/wanikani_lessons.py b/personal_data/fetchers/wanikani_lessons.py index 198adfa..909293f 100644 --- a/personal_data/fetchers/wanikani_lessons.py +++ b/personal_data/fetchers/wanikani_lessons.py @@ -13,9 +13,10 @@ logger = logging.getLogger(__name__) URL_API_ROOT = 'https://api.wanikani.com/v2' URL_ASSIGNMENTS = URL_API_ROOT + '/assignments' -URL_SUMMARY = URL_API_ROOT + '/summary' +URL_SUMMARY = URL_API_ROOT + '/summary' URL_SUBJECTS = URL_API_ROOT + '/subjects/{subject_id}' + def _setup_cache(session): requests_util.setup_limiter( session, @@ -63,6 +64,7 @@ class WaniKaniLessonsFetcher(Scraper): yield data_item url = json_resp.get('pages', {}).get('next_url') + @dataclasses.dataclass(frozen=True) class WaniKaniSummaryFetcher(Scraper): dataset_name: str = 'wanikani_summary'