fix rules sometimes updating without changes

This commit is contained in:
Mylloon 2022-08-11 13:52:20 +02:00
parent dc28c29c6f
commit c0c00a0759
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -307,6 +307,8 @@ def create_rules(tracked_users: list[str]) -> list[str]:
# Buffer # Buffer
buffer = repeat buffer = repeat
tracked_users.sort()
# Track users # Track users
for user in tracked_users: for user in tracked_users:
# Check if the rule don't exceeds the maximum length of a rule (512) # Check if the rule don't exceeds the maximum length of a rule (512)