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:
Keegan McAllister 2012-10-01 10:14:47 -04:00
parent 1467901f1a
commit 5556bdd0a1
1 changed files with 2 additions and 0 deletions

View File

@ -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')