fix rules sometimes updating without changes
This commit is contained in:
parent
dc28c29c6f
commit
c0c00a0759
1 changed files with 2 additions and 0 deletions
2
main.py
2
main.py
|
@ -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)
|
||||||
|
|
Reference in a new issue