mirror of
https://github.com/smittix/intercept.git
synced 2026-04-29 09:09:59 -07:00
v2.26.0: fix SSE fanout crash and branded logo FOUC
- Fix SSE fanout thread AttributeError when source queue is None during interpreter shutdown by snapshotting to local variable with null guard - Fix branded "i" logo rendering oversized on first page load (FOUC) by adding inline width/height to SVG elements across 10 templates - Bump version to 2.26.0 in config.py, pyproject.toml, and CHANGELOG.md Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,13 +14,13 @@ from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
from .constants import (
|
||||
FORMAT_CODES,
|
||||
DISTRESS_NATURE_CODES,
|
||||
TELECOMMAND_CODES,
|
||||
CATEGORY_PRIORITY,
|
||||
DISTRESS_NATURE_CODES,
|
||||
FORMAT_CODES,
|
||||
MID_COUNTRY_MAP,
|
||||
VALID_FORMAT_SPECIFIERS,
|
||||
TELECOMMAND_CODES,
|
||||
VALID_EOS,
|
||||
VALID_FORMAT_SPECIFIERS,
|
||||
)
|
||||
|
||||
logger = logging.getLogger('intercept.dsc.parser')
|
||||
@@ -330,10 +330,7 @@ def validate_mmsi(mmsi: str) -> bool:
|
||||
return False
|
||||
|
||||
# All zeros is invalid
|
||||
if mmsi == '000000000':
|
||||
return False
|
||||
|
||||
return True
|
||||
return mmsi != '000000000'
|
||||
|
||||
|
||||
def classify_mmsi(mmsi: str) -> str:
|
||||
|
||||
Reference in New Issue
Block a user