Skip to content

Commit

Permalink
fix(BattlegroundsLogFilter): whitelist COPIED_FROM_ENTITY_ID
Browse files Browse the repository at this point in the history
  • Loading branch information
beheh committed Apr 22, 2024
1 parent de2a048 commit d84baa9
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions hslog/filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from hslog.utils import parse_tag


# List of TAG_CHANGE tags to discard
# List of TAG_CHANGE tags to discard/keep

BLACKLISTED_TAGS = [
"EXHAUSTED",
Expand All @@ -20,6 +20,10 @@
"TECH_LEVEL",
]

WHITELISTED_TAGS = [
"COPIED_FROM_ENTITY_ID",
]

# List of FULL_ENTITY tags to discard

BLACKLISTED_FULL_ENTITY_TAGS = [
Expand Down Expand Up @@ -403,7 +407,8 @@ def _handle_tag_change(self, msg: str, line: str):
tag in BLACKLISTED_TAGS or
(
self._current_buffer is not None and
hasattr(self._current_buffer, "skip_tag_changes")
hasattr(self._current_buffer, "skip_tag_changes") and
not tag in WHITELISTED_TAGS
)
):
self._start_new_buffer("TAG_CHANGE", "")
Expand Down

0 comments on commit d84baa9

Please sign in to comment.