mirror of
https://github.com/Comfy-Org/download-data.git
synced 2026-11-05 00:17:20 +00:00
[GH-ISSUE #5] Bug: First observation of an asset inflates daily delta (re-uploads/new IDs) #2
Labels
No labels
bug
bug
documentation
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Comfy-Org/download-data#2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @benceruleanlu on GitHub (Nov 9, 2025).
Original GitHub issue: https://github.com/Comfy-Org/download-data/issues/5
Summary
Daily summary treats missing prior snapshot as if today’s full download_count is the delta, which can spike totals when an asset is first seen (including re-uploads with a new asset_id).
Evidence
WHEN old.download_count IS NULL THEN new.download_count
Proposed Fix
CASE WHEN old.download_count IS NULL THEN 0 ELSE new.download_count - old.download_count END
Acceptance Criteria