Comfy-Org / Comfy-Org/download-data

Enhancement: Restrict daily totals to portable assets and stable releases (configurable)

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
4
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Summary
Current implementation sums all assets for all fetched releases. To answer “how many downloads of the portable releases per day,” we should filter assets by name pattern and optionally exclude prereleases/drafts via configuration.

Details
- All assets inserted: scripts/fetch-data.mjs:317–333
- Daily totals don’t filter by flags: scripts/fetch-data.mjs:343–357

Proposed Fix
- Add env flags:
- PORTABLE_ONLY=true
- PORTABLE_NAME_PATTERN=ComfyUI_windows_portable_
- INCLUDE_PRERELEASE=false
- INCLUDE_DRAFT=false
- In storeDailyStats, skip releases when draft/prerelease if flags are false; skip assets not matching pattern when PORTABLE_ONLY=true.
- Optionally enforce the same filter in the summary SQL for safety.

Acceptance Criteria
- Changing flags alters which asset rows are stored for the bucket
- Daily totals reflect only portable, stable releases by default

References
- Asset loop: scripts/fetch-data.mjs:317–333
- Summary calculation: scripts/fetch-data.mjs:343–357

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.