patch empty message remaining

This commit is contained in:
Kevin F 2022-05-15 15:52:00 -05:00
parent 87e799ac88
commit fbf11c8a44

View File

@ -84,6 +84,10 @@ class SMSCounter(object):
# and then convert the ceil result to int
# since python 2.7 return a float
messages = int(ceil(length / float(permessage)))
if length == 0:
remaining = permessage
else:
remaining = (permessage * messages) - length
returnset = {