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

Weblate data: only request data since CSV files were last updated #47

Open
hturner opened this issue Oct 25, 2024 · 0 comments
Open

Weblate data: only request data since CSV files were last updated #47

hturner opened this issue Oct 25, 2024 · 0 comments

Comments

@hturner
Copy link
Member

hturner commented Oct 25, 2024

The scripts weblate/Recent Changes/Recent changes.R and weblate/User Statistics/User_statistics.R use the Weblate changes API to get information about changes of certain types on Weblate, which are then processed and saved as CSV files.

Unfortunately these scripts currently request all changes since the Weblate server was set up, when we only need the data since the corresponding CSV file or files were last updated.

The weblate/Slack/Weblate_Slack.R script used to have the same issue but has been updated to use the timestamp_after and timestamp_before query parameters in the API. This can be used as an example of how to update the Recent changes.R and User_statistics.R so we only request the data we need, saving time and avoiding hammering the API.

The Slack script gets the changes for the last 7 days, where as these scripts should get all changes since the last update to the CSV file/files they create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant