aboutsummaryrefslogtreecommitdiff
path: root/wqflask/utility
diff options
context:
space:
mode:
authorBonfaceKilz2020-07-22 17:03:37 +0300
committerBonfaceKilz2020-07-24 03:47:44 +0300
commitaed1b7f12f653694c22ab389a403120e143a0669 (patch)
tree5d986588b34a8a726283d15d0975738d92797f7d /wqflask/utility
parent82ee315583281b93e1eff9640ce04e44bc70ac58 (diff)
downloadgenenetwork2-aed1b7f12f653694c22ab389a403120e143a0669.tar.gz
Add zero to num_repr dictionary
* wqflask/utility/formatting.py(numify): Update `num_repr` to have a zero
Diffstat (limited to 'wqflask/utility')
-rw-r--r--wqflask/utility/formatting.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/wqflask/utility/formatting.py b/wqflask/utility/formatting.py
index e53dda22..1c0269e9 100644
--- a/wqflask/utility/formatting.py
+++ b/wqflask/utility/formatting.py
@@ -28,7 +28,8 @@ def numify(number, singular=None, plural=None):
'12,334 hippopotami'
"""
- num_repr = {1 : "one",
+ num_repr = {0 : "zero",
+ 1 : "one",
2 : "two",
3 : "three",
4 : "four",