Skip to content

Add download counter for datasets #105

Description

@drorganvidez

Description:
Allow tracking how many times a dataset has been downloaded by incrementing a counter each time a download is requested.
This gives authors and users a simple way to measure dataset popularity.

Details:

  • Add a new field download_count (default = 0) to the dataset model.
  • Each time a dataset file (or ZIP) is downloaded, increment download_count in the database.
  • Expose this value in the dataset API and show it in the dataset detail page.
  • Optionally, add a simple endpoint /datasets/{id}/stats that returns downloads, views, etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions