Skip to content

Commit

Permalink
fix: ampel should show "red" as default
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
b1rger committed Feb 22, 2024
1 parent 623346c commit e9f3bbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion viecpro_typesense/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down
2 changes: 1 addition & 1 deletion viecpro_typesense_detail/details/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit e9f3bbc

Please sign in to comment.