mirror of https://github.com/zulip/zulip.git
Put the type conversions back into return_messages_immediately
This had broken the check 'if last == -1' (imported from commit 2154dbda696d72ea14c841f43511846a87e4ba0d)
This commit is contained in:
parent
1467901f1a
commit
5556bdd0a1
|
@ -153,6 +153,8 @@ def return_messages_immediately(request, handler, user_profile, **kwargs):
|
|||
last = request.POST.get("last")
|
||||
if first is None or last is None:
|
||||
return False
|
||||
first = int(first)
|
||||
last = int(last)
|
||||
|
||||
where = 'bottom'
|
||||
query = Zephyr.objects.filter(usermessage__user_profile = user_profile).order_by('id')
|
||||
|
|
Loading…
Reference in New Issue