jamietr1 / google-docs-writing-tracker

Automation scripts to track writing in Google Docs
187 stars 39 forks source link

total words for the day reported as NaN #6

Closed iomadh closed 9 years ago

iomadh commented 9 years ago

The total number of words reported in the email sent out to Evernote was an invalid number

This was because the script uses the following on line 82 :-

var totalWords = totalFicNonFicWords + blogWords;

however, blogWords not set in this version of the code

workaround - remove "+ blogWords" from end of this line of code will give a simple fix until Jamie has time to fix the code

jamietr1 commented 9 years ago

I've got a major refactoring that I'll be releasing, likely in a beta-branch in the next day or so. The refactoring makes the app much more data-driven, and should eliminate most of these errors.

iomadh commented 9 years ago

good to hear - looking forward to it - I have another issue where it only ever outputs "You have now written for 0 out of the last 0 days." but will leave and wait for the refactor - thanks for putting this out to public and continuing to work on it

jamietr1 commented 9 years ago

Fixed in the latest commit (ef195b).