f
This commit is contained in:
@@ -1358,7 +1358,7 @@ def fmt_bytes(n: Optional[int]) -> str:
|
||||
return f"{mb:.1f} MB"
|
||||
|
||||
|
||||
def _normalise_tag_group_entry(value: Any) -> Optional[str]:
|
||||
def _normalize_tag_group_entry(value: Any) -> Optional[str]:
|
||||
"""Internal: Normalize a single tag group entry."""
|
||||
if not isinstance(value, str):
|
||||
value = str(value)
|
||||
@@ -1428,14 +1428,14 @@ def _load_tag_groups() -> Dict[str, List[str]]:
|
||||
members: List[str] = []
|
||||
if isinstance(value, list):
|
||||
for entry in value:
|
||||
normalised = _normalise_tag_group_entry(entry)
|
||||
if normalised:
|
||||
members.append(normalised)
|
||||
normalized = _normalize_tag_group_entry(entry)
|
||||
if normalized:
|
||||
members.append(normalized)
|
||||
elif isinstance(value, str):
|
||||
normalised = _normalise_tag_group_entry(value)
|
||||
if normalised:
|
||||
normalized = _normalize_tag_group_entry(value)
|
||||
if normalized:
|
||||
members.extend(
|
||||
token.strip() for token in normalised.split(",")
|
||||
token.strip() for token in normalized.split(",")
|
||||
if token.strip()
|
||||
)
|
||||
if members:
|
||||
|
||||
Reference in New Issue
Block a user