Commit 889d54aa authored by Adrià Labay's avatar Adrià Labay
Browse files

move operator to the beggining of the line

parent d3e1f327
......@@ -98,8 +98,8 @@ class Problems(Resource):
return dict(status=400, message=msg), 400
page_size = current_app.config['PAGE_FORMATS'][current_app.config['PAGE_FORMAT']]
if not (0 <= args['x'] < args['width'] + args['x'] < page_size[0] and
0 <= args['y'] < args['height'] + args['y'] < page_size[1]):
if not (0 <= args['x'] < args['width'] + args['x'] < page_size[0]
and 0 <= args['y'] < args['height'] + args['y'] < page_size[1]):
return dict(status=409, message='Problem size exceeds the page size.'), 409
widget = ProblemWidget(
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment