From 41049ede1a69a72a91fbaf9a3069ba15c8c29ead Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Mon, 13 May 2024 18:29:02 +0200 Subject: [PATCH] implement workaround for status singular mistake --- src/generator/lib/util.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/generator/lib/util.py b/src/generator/lib/util.py index 832ab2bf4f..1f75d01323 100644 --- a/src/generator/lib/util.py +++ b/src/generator/lib/util.py @@ -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