aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Bast <[email protected]>2021-05-22 13:17:02 -0700
committerGravatar Bast <[email protected]>2021-05-22 13:17:02 -0700
commite8b110d12e183c4b9ff1fac63bb509d910d0ccd7 (patch)
treebb0a8eb8aadbc0360626781caac9e5837669e223 /tests/helpers.py
parentMerge pull request #1593 from python-discord/flake-8-isn't-a-task (diff)
Fix infraction rescheduler breaking with more than 100 in flight reactions
Make sure to only fetch infractions to reschedule by filtering by type and permanent status. We don't reschedule permanents as they will never be automatically expired, so they're a waste and clog to filter out manually. There is a PR for `site` to add the requisite filters (`types` and `permanent`). We also only reschedule the soonest-expiring infractions, waiting until we've processed all of them before fetching the next batch by ordering them by expiration time.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions