mirror of
https://github.com/idanoo/autobrr
synced 2025-07-23 00:39:13 +00:00
docs(filters): explain GetDownloadsByFilterId (#1345)
add comment about GetDownloadsByFilterId
This commit is contained in:
parent
f464e91e18
commit
256fbb49ba
1 changed files with 7 additions and 0 deletions
|
@ -1426,6 +1426,13 @@ func (r *FilterRepo) Delete(ctx context.Context, filterID int) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
// GetDownloadsByFilterId looks up how many `PENDING` or `PUSH_APPROVED`
|
||||
// releases there have been for the given filter in the current time window
|
||||
// starting at the start of the unit (since the beginning of the most recent
|
||||
// hour/day/week).
|
||||
//
|
||||
// See also
|
||||
// https://github.com/autobrr/autobrr/pull/1285#pullrequestreview-1795913581
|
||||
func (r *FilterRepo) GetDownloadsByFilterId(ctx context.Context, filterID int) (*domain.FilterDownloads, error) {
|
||||
if r.db.Driver == "sqlite" {
|
||||
return r.downloadsByFilterSqlite(ctx, filterID)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue