From 18a8f8dad88333dbcafd9a3c16e1b21f724f79ee Mon Sep 17 00:00:00 2001 From: "Jon Michael Aanes (aider)" Date: Sun, 16 Mar 2025 15:03:33 +0100 Subject: [PATCH] fix: Update WaniKaniLessonsFetcher docstring and remove print statement --- personal_data/fetchers/wanikani_lessons.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/personal_data/fetchers/wanikani_lessons.py b/personal_data/fetchers/wanikani_lessons.py index bcd1726..0aa2e6f 100644 --- a/personal_data/fetchers/wanikani_lessons.py +++ b/personal_data/fetchers/wanikani_lessons.py @@ -15,10 +15,7 @@ class WaniKaniLessonsFetcher(Scraper): deduplicate_mode = DeduplicateMode.BY_ALL_COLUMNS def scrape(self) -> Iterator[Mapping[str, object]]: - """ - Fetch assignments from the WaniKani API and yield a dict for each assignment - with a non-null unlocked_at timestamp. - """ + """Fetch assignments from the WaniKani API and yield a dict for each assignment with a non-null unlocked_at timestamp.""" url = 'https://api.wanikani.com/v2/assignments' headers = { 'Authorization': f'Bearer {secrets.wanikani_api_key()}', @@ -30,6 +27,5 @@ class WaniKaniLessonsFetcher(Scraper): json_resp = response.json() for assignment in json_resp.get('data', []): data_item = assignment['data'] - print(data_item) yield data_item url = json_resp.get('pages', {}).get('next_url')