Skip to content

Commit d84baa9

Browse files
committed
fix(BattlegroundsLogFilter): whitelist COPIED_FROM_ENTITY_ID
1 parent de2a048 commit d84baa9

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

hslog/filter.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
from hslog.utils import parse_tag
99

1010

11-
# List of TAG_CHANGE tags to discard
11+
# List of TAG_CHANGE tags to discard/keep
1212

1313
BLACKLISTED_TAGS = [
1414
"EXHAUSTED",
@@ -20,6 +20,10 @@
2020
"TECH_LEVEL",
2121
]
2222

23+
WHITELISTED_TAGS = [
24+
"COPIED_FROM_ENTITY_ID",
25+
]
26+
2327
# List of FULL_ENTITY tags to discard
2428

2529
BLACKLISTED_FULL_ENTITY_TAGS = [
@@ -403,7 +407,8 @@ def _handle_tag_change(self, msg: str, line: str):
403407
tag in BLACKLISTED_TAGS or
404408
(
405409
self._current_buffer is not None and
406-
hasattr(self._current_buffer, "skip_tag_changes")
410+
hasattr(self._current_buffer, "skip_tag_changes") and
411+
not tag in WHITELISTED_TAGS
407412
)
408413
):
409414
self._start_new_buffer("TAG_CHANGE", "")

0 commit comments

Comments
 (0)