fix None issue

This commit is contained in:
botcs
2017-03-08 10:28:13 +01:00
parent 43fbe4c655
commit 78928fda77

View File

@@ -532,6 +532,7 @@ class Client(object):
# deprecated
# `start` doesn't matter, always returns from the last
# data['messages[{}][{}][offset]'.format(key, userID)] = start
data['messages[{}][{}][offset]'.format(key, userID)] = 0
data['messages[{}][{}][limit]'.format(key, userID)] = last_n
data['messages[{}][{}][timestamp]'.format(key, userID)] = now()
@@ -568,7 +569,7 @@ class Client(object):
data = {
'client' : self.client,
'inbox[offset]' : start,
'inbox[limit]' : end,
'inbox[limit]' : 19,
}
r = self._post(ThreadsURL, data)