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

Save downloads to PackageStats when there are not analytics data for the day #47

Merged

Conversation

Zharktas
Copy link
Collaborator

If there aren't any analytics data for some date, download data was not saved in ResourceStats, now all data is parsed in ResourceStats and PackageStats is updated if there weren't analytics data for the day.

Also parses package id from given dataset name for debugging purposes.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 7871547623

Details

  • -30 of 30 (0.0%) changed or added relevant lines in 1 file are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage increased (+0.03%) to 41.771%

Changes Missing Coverage Covered Lines Changed/Added Lines %
ckanext/matomo/commands.py 0 30 0.0%
Files with Coverage Reduction New Missed Lines %
ckanext/matomo/commands.py 1 7.45%
Totals Coverage Status
Change from base Build 7816350324: 0.03%
Covered Lines: 599
Relevant Lines: 1434

💛 - Coveralls

@Zharktas Zharktas merged commit 0d0dad7 into main Feb 13, 2024
4 checks passed
@Zharktas Zharktas deleted the save_downloads_to_package_stats_when_there_are_no_analytics branch February 13, 2024 07:59
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

Successfully merging this pull request may close these issues.

3 participants