mirror of https://github.com/zulip/zulip.git
Previously conditionals used the wrong case to reference request.POST.
(imported from commit 2624def3745c3b26114ee1a1a9a20288e078b243)
This commit is contained in:
parent
9f61e27218
commit
1d6a5741e0
|
@ -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"))
|
||||||
|
|
Loading…
Reference in New Issue