mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
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:
parent
c85fa3f31a
commit
ef7317dde6
5 changed files with 63 additions and 9 deletions
|
@ -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:"-"`
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue