patch empty message remaining
This commit is contained in:
parent
87e799ac88
commit
fbf11c8a44
@ -84,6 +84,10 @@ class SMSCounter(object):
|
|||||||
# and then convert the ceil result to int
|
# and then convert the ceil result to int
|
||||||
# since python 2.7 return a float
|
# since python 2.7 return a float
|
||||||
messages = int(ceil(length / float(permessage)))
|
messages = int(ceil(length / float(permessage)))
|
||||||
|
|
||||||
|
if length == 0:
|
||||||
|
remaining = permessage
|
||||||
|
else:
|
||||||
remaining = (permessage * messages) - length
|
remaining = (permessage * messages) - length
|
||||||
|
|
||||||
returnset = {
|
returnset = {
|
||||||
|
Loading…
Reference in New Issue
Block a user