athul / waka-readme

Wakatime Weekly Metrics on your Profile Readme.
https://github.com/athul
MIT License
1.56k stars 302 forks source link

Header issue (inaccurate week stats) #7

Closed rajitbanerjee closed 4 years ago

rajitbanerjee commented 4 years ago

@athul Is there a way to change the header? It's actually not accurate. The Waka Time API returns metrics from the last 7 days from the current date, and not according to weeks of the year. @joe733 could you please modify the code so that the header displays the last 7 days: e.g. running the workflow on July 17 should return the header "Week: July 9 - July 16". I'm not sure what to do about the week number. image

Originally posted by @rajitbanerjee in https://github.com/athul/waka-readme/pull/6#issuecomment-660300180

yozachar commented 4 years ago

The Waka Time API returns metrics from the last 7 days from the current date.

Oh I see.

I'm not sure what to do about the week number.

I think it would be good to just drop it.

athul commented 4 years ago

Hey @rajitbanerjee if You feel the issue was solved, feel free to close the Issue. 😄

Thanks for reporting this bug and thanks @joe733 for fixing it