Skip to content

Commit 3f942d2

Browse files
committed
Merge pull request #2 from DataDog/olivielpeau/fix-pluralization
Fix pluralization for `0`
2 parents 414133d + fa916f1 commit 3f942d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

datadog_callback.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def default_tags(self):
105105

106106
@staticmethod
107107
def pluralize(number, noun):
108-
if number <= 1:
108+
if number == 1:
109109
return "{0} {1}".format(number, noun)
110110

111111
return "{0} {1}s".format(number, noun)

0 commit comments

Comments
 (0)