Fix broken conditionals in get_old_messages_backend.

(imported from commit 13b934cdd2805d45efff18f7ce485b3e17e11c1a)
This commit is contained in:
Luke Faraone 2012-10-30 13:22:32 -04:00
parent 172a2cf299
commit 9f61e27218
1 changed files with 2 additions and 2 deletions

View File

@ -272,9 +272,9 @@ def get_old_messages_backend(request, user_profile=None,
apply_markdown=True): apply_markdown=True):
if not ('start' in request.POST): if not ('start' in request.POST):
return json_error("Missing 'start' parameter") return json_error("Missing 'start' parameter")
if not ('which in request.post'): if not ('which' in request.post):
return json_error("Missing 'which' parameter") return json_error("Missing 'which' parameter")
if not ('number in request.post'): if not ('number' in request.post):
return json_error("Missing 'number' parameter") return json_error("Missing 'number' parameter")
start = int(request.POST.get("start")) start = int(request.POST.get("start"))