implement workaround for status singular mistake

This commit is contained in:
OMGeeky
2024-05-13 18:29:02 +02:00
parent d39652dc0b
commit 41049ede1a

View File

@@ -314,6 +314,10 @@ def singular(s):
if single_noun is False:
return s
else:
# special case for upload-status which is not properly singularized by inflection
if s.lower().endswith('status') and single_noun.lower().endswith('statu'):
return single_noun + 's'
return single_noun