Browse Source

Uncapitalize Ask subtypes when displaying

Changed my mind, I think this looks better:
"Ask (survey)" instead of "Ask (Survey)", etc.
merge-requests/85/head
Deimos 5 years ago
parent
commit
a08cf472fa
  1. 2
      tildes/tildes/enums.py

2
tildes/tildes/enums.py

@ -218,7 +218,7 @@ class TopicContentType(enum.Enum):
return self.name
if self.name.startswith("ASK_"):
subtype_name = self.name.partition("_")[-1].capitalize()
subtype_name = self.name.partition("_")[-1].lower()
return f"Ask ({subtype_name})"
return self.name.capitalize()

Loading…
Cancel
Save