Open Thomas-Smyth opened 3 years ago
I may be wrong, but this approach will not filter out all duplicate bans from the same org for a player?
How about the following: Fetch all bans, identify dupes, deselect the entries within dupes leaving only the longest ban duration, and import that. This approach would address your concern, plus would stop any potential deliberate double entry of bans?
I've noticed that some players have multiple bans from the same ban list in a short period of time. I do not believe that this is an abuse of the system, but I believe it could be:
For example: https://squad-community-ban-list.com/search/76561198124379883
Though I believe it not to be, others without full context may believe this is an abuse of the system so we should definitely look to fix this.
Idea:
bulkCreate
with anonDuplicateUpdate
for all the fields.Though I said the performance gain for queue saving did not improve runtime, it would be good to find a way to prevent the saving of bans in a ban list from blocking the other ban lists from being fetched, so we are limited less by BM's API rate limit.