cslarsen / wpm

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

--load not working #29

Closed ArtyomShalagin closed 6 years ago

ArtyomShalagin commented 6 years ago

Launching wpm with --load filename results in UnboundLocalError: local variable 'quotes' referenced before assignment at commandline.py:174. This makes sense because quotes really was not assigned at this point. It also seems like the order of arguments is wrong: load_plain_text_quote takes filename as the second argument while opts.load is provided as the first argument. After fixing this two things there are no more errors, the text still doesn't load properly but I didn't investigate further. I could probably fix that if the bug gets approved.

cslarsen commented 6 years ago

I have published wpm v1.50.2 to PyPi that addresses this. I also see there are other bugs related to loading plain text files. For instance, the text IDs are always the same when loading your own files. I will fix that.

Thanks for reporting!

cslarsen commented 6 years ago

I've fixed the text IDs in v1.50.3