style: Run linter to fix quotation style in WaniKaniLessonsFetcher class
This commit is contained in:
parent
f5a0eecc73
commit
b3af7e36fd
|
@ -27,13 +27,13 @@ class WaniKaniLessonsFetcher(Scraper):
|
||||||
json_resp = response.json()
|
json_resp = response.json()
|
||||||
for assignment in json_resp.get('data', []):
|
for assignment in json_resp.get('data', []):
|
||||||
data_item = assignment['data']
|
data_item = assignment['data']
|
||||||
subject_id = data_item.get("subject_id")
|
subject_id = data_item.get('subject_id')
|
||||||
if subject_id:
|
if subject_id:
|
||||||
subj_url = f'https://api.wanikani.com/v2/subjects/{subject_id}'
|
subj_url = f'https://api.wanikani.com/v2/subjects/{subject_id}'
|
||||||
subj_response = self.session.get(subj_url, headers=headers)
|
subj_response = self.session.get(subj_url, headers=headers)
|
||||||
subj_response.raise_for_status()
|
subj_response.raise_for_status()
|
||||||
subj_json = subj_response.json()
|
subj_json = subj_response.json()
|
||||||
subject_characters = subj_json.get("data", {}).get("characters")
|
subject_characters = subj_json.get('data', {}).get('characters')
|
||||||
data_item["subject_characters"] = subject_characters
|
data_item['subject_characters'] = subject_characters
|
||||||
yield data_item
|
yield data_item
|
||||||
url = json_resp.get('pages', {}).get('next_url')
|
url = json_resp.get('pages', {}).get('next_url')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user