feat(filters): show current download count in list (#2001)

* feat(filters): show current and max downloads in list

* feat(filters): remove unused func param
This commit is contained in:
ze0s 2025-03-16 18:33:47 +01:00 committed by GitHub
parent c85fa3f31a
commit ef7317dde6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 63 additions and 9 deletions

View file

@ -45,11 +45,11 @@ type FilterRepo interface {
}
type FilterDownloads struct {
HourCount int
DayCount int
WeekCount int
MonthCount int
TotalCount int
HourCount int `json:"hour_count"`
DayCount int `json:"day_count"`
WeekCount int `json:"week_count"`
MonthCount int `json:"month_count"`
TotalCount int `json:"total_count"`
}
func (f *FilterDownloads) String() string {
@ -172,7 +172,7 @@ type Filter struct {
Indexers []Indexer `json:"indexers"`
ReleaseProfileDuplicateID int64 `json:"release_profile_duplicate_id,omitempty"`
DuplicateHandling *DuplicateReleaseProfile `json:"release_profile_duplicate"`
Downloads *FilterDownloads `json:"-"`
Downloads *FilterDownloads `json:"downloads,omitempty"`
Rejections []string `json:"-"`
RejectReasons *RejectionReasons `json:"-"`
}