MCPcopy Create free account
hub / github.com/vastsa/FileCodeBox / _normalize_file_view_preset_choice

Method _normalize_file_view_preset_choice

apps/admin/services.py:1118–1122  ·  view source on GitHub ↗
(self, value: Any, allowed_values: set[str])

Source from the content-addressed store, hash-verified

1116 }
1117
1118 def _normalize_file_view_preset_choice(self, value: Any, allowed_values: set[str]) -> str:
1119 normalized_value = str(value or "all").strip().lower()
1120 if normalized_value not in allowed_values:
1121 return "all"
1122 return normalized_value
1123
1124 def _build_file_view_preset_id(
1125 self, name: str, timestamp: Optional[datetime] = None

Calls

no outgoing calls

Tested by

no test coverage detected