diff --git a/viecpro_typesense/collections.py b/viecpro_typesense/collections.py index 4f3bcf2..b003809 100644 --- a/viecpro_typesense/collections.py +++ b/viecpro_typesense/collections.py @@ -63,7 +63,7 @@ def shared_fields(m): return { def ampelhandler(x): if hasattr(x, "ampel"): return x.ampel.status - return "" + return "red" def get_entity_specific_detail_fields(entity): fields = {} diff --git a/viecpro_typesense_detail/details/utils.py b/viecpro_typesense_detail/details/utils.py index ddd0103..b2a3f0e 100644 --- a/viecpro_typesense_detail/details/utils.py +++ b/viecpro_typesense_detail/details/utils.py @@ -141,4 +141,4 @@ def get_references_for_instance(instance: Any) -> List[Dict[str, Any]]: def ampel(instance: Any) -> str: if ampel := getattr(instance, "ampel", False): return ampel.status - return "" + return "red"