Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Stats implementation not accepting time ranges #88

Open
daniel-naegele opened this issue Sep 15, 2023 · 2 comments
Open

API Stats implementation not accepting time ranges #88

daniel-naegele opened this issue Sep 15, 2023 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@daniel-naegele
Copy link

When trying out the following project https://github.com/athul/waka-readme I came across the issue, that the following API is not implemented:
hakatime | 141.52.248.4 - - [15/Sep/2023:13:14:57 +0000] "GET /api/v1/users/current/stats/last_7_days HTTP/1.1" 404 - ...

The Wakatime API suggests, that last_7_days is a valid request, but the server is not properly handling it.
I could help implement the bug fix/implementation as a good first issue, but will need a bit of help to know where to fix it.

@mujx mujx added the enhancement New feature or request label Sep 20, 2023
@mujx
Copy link
Owner

mujx commented Sep 20, 2023

Hi @daniel-naegele, thanks for your interest in the project. This seems like a missing feature because currently that endpoint only accepts query paramters.

This is the relevant piece of code that handle those requests:

statsHandler ::
and it could be updated to handle also an extra path parameter.

@mujx mujx added the good first issue Good for newcomers label Sep 20, 2023
@Falci
Copy link

Falci commented Mar 4, 2024

I had the same issue when I tried to switch from wakatime to hakatime as provider for waka-readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants