cslarsen / wpm

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

Append to .wpm.csv instead of overwriting #30

Open cslarsen opened 6 years ago

cslarsen commented 6 years ago

If you open two wpm sessions, the last one will overwrite the entire file, discarding results from the first session. A way to fix this is to read the last row and continue race numbers from there by appending to the file instead of overwriting the entire thing. It's also much faster, just keep track of which results are new to the set.