cslarsen / wpm

Typeracer-like console app for measuring your WPM
GNU Affero General Public License v3.0
323 stars 48 forks source link

loading text file or json not working #17

Closed mmkodali closed 6 years ago

mmkodali commented 6 years ago

loading text file or json as suggested in readme is giving following output.

Traceback (most recent call last): File "/home/murali/.pyenv/versions/2.7.10/bin/wpm", line 11, in wpm.commandline.main() File "/home/murali/.pyenv/versions/2.7.10/lib/python2.7/site-packages/wpm/commandline.py", line 130, in main with wpm.game.Game(quotes, stats) as game: File "/home/murali/.pyenv/versions/2.7.10/lib/python2.7/site-packages/wpm/game.py", line 246, in init self.quotes = quotes.random_iterator() AttributeError: 'list' object has no attribute 'random_iterator'

cslarsen commented 6 years ago

Thanks for the report, I'll fix it.

cslarsen commented 6 years ago

JSON-loading fixed in 4325abcab9b2afc988e6221c0e1c2d60cf65e8fc

cslarsen commented 6 years ago

Text-loading fixed in e54d68bb95dabe0423881ac29ed03949ea2cd3b2