lets get this party starteddddd (#1287)

This commit is contained in:
NotSoToothless
2026-05-30 08:45:32 -07:00
committed by GitHub
parent 8396f48f90
commit 54c06bd275
4 changed files with 243 additions and 70 deletions
+4 -3
View File
@@ -28,6 +28,7 @@ import discord
# Local Module Imports
from . import utils
from data_parser import LangTableReader
from shared_store import blacklisted_squadrons
from .game_api import get_point_diff
from .render_replay import load_gob_file, render_gob
from .health import record_game_processed, record_ws_message
@@ -42,7 +43,6 @@ from .utils import (
SQ_BATTLES_DB_PATH,
SQUADRONS_DB_PATH,
BLACKLISTED_SERVER_IDS,
BLACKLISTED_SQUADRONS,
DEFAULT_FOOTER_CAT,
compress_json,
decompress_json,
@@ -50,6 +50,7 @@ from .utils import (
norm,
resolve_clans,
resolve_pref_key,
is_foreign_pref_entry,
load_features,
remove_guild_pref_notification,
PREMIUM_ACTIVATION_TS,
@@ -653,7 +654,7 @@ async def build_hex_plus_guild(
# under all of its known names so it can be found regardless of which
# form ends up in the replay JSON.
for key, cfg in prefs.items():
if not isinstance(cfg, dict):
if not isinstance(cfg, dict) or is_foreign_pref_entry(cfg):
continue
chan = cfg.get("Logs")
if not chan or "DISABLED" in str(chan).upper():
@@ -692,7 +693,7 @@ async def build_hex_plus_guild(
# PHASE 2: Match games against pre-built lookup tables
blacklisted_squad_norms = {norm(bl) for bl in BLACKLISTED_SQUADRONS}
blacklisted_squad_norms = {norm(bl) for bl in blacklisted_squadrons()}
for g in games:
sid = g.get("sessionIdHex", "")