Skip to content

Commit d236963

Browse files
committed
changes from Brent
1 parent 2c59231 commit d236963

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PyPortal_Word_of_the_Day/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
# Set up where we'll be fetching data from
1919
DATA_SOURCE = "https://api.wordnik.com/v4/words.json/wordOfTheDay?api_key="+secrets['wordnik_token']
20-
WORD_LOCATION = ['word']
2120
PART_OF_SPEECH = ['definitions', 0, 'partOfSpeech']
2221
DEF_LOCATION = ['definitions', 0, 'text']
2322
EXAMPLE_LOCATION = ['examples', 0, 'text']
@@ -59,7 +58,8 @@
5958
if pyportal.touchscreen.touch_point:
6059
try:
6160
#set the JSON path here to be able to change between definition and example
62-
pyportal._json_path=(WORD_LOCATION,
61+
# pylint: disable=protected-access
62+
pyportal._json_path=(['word'],
6363
PART_OF_SPEECH,
6464
DEFINITION_EXAMPLE_ARR[definition_example])
6565
value = pyportal.fetch()

0 commit comments

Comments
 (0)