Skip to content

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

Open
@hturner

Description

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.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions