fix None issue
This commit is contained in:
@@ -532,6 +532,7 @@ class Client(object):
|
|||||||
# deprecated
|
# deprecated
|
||||||
# `start` doesn't matter, always returns from the last
|
# `start` doesn't matter, always returns from the last
|
||||||
# data['messages[{}][{}][offset]'.format(key, userID)] = start
|
# data['messages[{}][{}][offset]'.format(key, userID)] = start
|
||||||
|
data['messages[{}][{}][offset]'.format(key, userID)] = 0
|
||||||
data['messages[{}][{}][limit]'.format(key, userID)] = last_n
|
data['messages[{}][{}][limit]'.format(key, userID)] = last_n
|
||||||
data['messages[{}][{}][timestamp]'.format(key, userID)] = now()
|
data['messages[{}][{}][timestamp]'.format(key, userID)] = now()
|
||||||
|
|
||||||
@@ -568,7 +569,7 @@ class Client(object):
|
|||||||
data = {
|
data = {
|
||||||
'client' : self.client,
|
'client' : self.client,
|
||||||
'inbox[offset]' : start,
|
'inbox[offset]' : start,
|
||||||
'inbox[limit]' : end,
|
'inbox[limit]' : 19,
|
||||||
}
|
}
|
||||||
|
|
||||||
r = self._post(ThreadsURL, data)
|
r = self._post(ThreadsURL, data)
|
||||||
|
Reference in New Issue
Block a user