diff --git a/personal_data/fetchers/wanikani_lessons.py b/personal_data/fetchers/wanikani_lessons.py index 90dae07..49927d7 100644 --- a/personal_data/fetchers/wanikani_lessons.py +++ b/personal_data/fetchers/wanikani_lessons.py @@ -27,13 +27,13 @@ class WaniKaniLessonsFetcher(Scraper): json_resp = response.json() for assignment in json_resp.get('data', []): data_item = assignment['data'] - subject_id = data_item.get("subject_id") + subject_id = data_item.get('subject_id') if subject_id: subj_url = f'https://api.wanikani.com/v2/subjects/{subject_id}' subj_response = self.session.get(subj_url, headers=headers) subj_response.raise_for_status() subj_json = subj_response.json() - subject_characters = subj_json.get("data", {}).get("characters") - data_item["subject_characters"] = subject_characters + subject_characters = subj_json.get('data', {}).get('characters') + data_item['subject_characters'] = subject_characters yield data_item url = json_resp.get('pages', {}).get('next_url')