Refs #33879 -- Fixed plural value deprecation warnings.
Plural value must be an integer. Regression in 8d67e16493c903adc9d049141028bc0fff43f8c8.
This commit is contained in:
parent
d16079dd90
commit
4593bc5da1
@ -104,7 +104,7 @@ def timesince(d, now=None, reversed=False, time_strings=None, depth=2):
|
|||||||
remaining_time = (now - pivot).total_seconds()
|
remaining_time = (now - pivot).total_seconds()
|
||||||
partials = [years, months]
|
partials = [years, months]
|
||||||
for chunk in TIME_CHUNKS:
|
for chunk in TIME_CHUNKS:
|
||||||
count = remaining_time // chunk
|
count = int(remaining_time // chunk)
|
||||||
partials.append(count)
|
partials.append(count)
|
||||||
remaining_time -= chunk * count
|
remaining_time -= chunk * count
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user