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'