Skip to content

Commit

Permalink
nytimes: fix for settings key error
Browse files Browse the repository at this point in the history
  • Loading branch information
thisisparker committed Jan 9, 2024
1 parent 08bc5a7 commit 35e9351
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xword_dl/downloader/newyorktimesdownloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def __init__(self, **kwargs):
nyts_token = self.authenticate(username, password)
update_config_file('nyt', {'NYT-S': nyts_token})
else:
nyts_token = self.settings.get('NYT-S')
nyts_token = self.settings.get('NYT_S')

if not nyts_token:
raise XWordDLException('No credentials provided or stored. Try running xword-dl nyt --authenticate')
Expand Down Expand Up @@ -169,7 +169,7 @@ def parse_xword(self, xword_data):
clue_list = xword_data['body'][0]['clues']
clue_list.sort(key=lambda c: (int(c['label']), c['direction']))

puzzle.clues = [unidecode(c['text'][0]['plain']) for c in clue_list]
puzzle.clues = [c['text'][0]['plain'] for c in clue_list]

return puzzle

Expand Down

0 comments on commit 35e9351

Please sign in to comment.