Skip to content

Commit

Permalink
repaired wrong intend
Browse files Browse the repository at this point in the history
  • Loading branch information
TimJuni committed Oct 13, 2013
1 parent 767a77d commit abf454f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions raspistillweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ def home_view(request):
# View for settings form data - no site will be generated
@view_config(route_name='save')
def save_view(request):
global exposure_mode, image_effect, preferences_success_alert, image_width,
image_height, preferences_fail_alert, awb_mode
global exposure_mode, image_effect, preferences_success_alert, image_width
global image_height, preferences_fail_alert, awb_mode

image_width_temp = request.params['imageWidth']
image_height_temp = request.params['imageHeight']
Expand All @@ -123,16 +123,14 @@ def save_view(request):
image_width = image_width_temp
else:
preferences_success_alert = False
preferences_fail_alert += ' Please enter an image width between 0
and 2500. '
preferences_fail_alert += ' Please enter an image width between 0 and 2500. '

if image_height_temp:
if 0 < int(image_height_temp) < 1500:
image_height = image_height_temp
else:
preferences_success_alert = False
preferences_fail_alert += ' Please enter an image height between 0
and 1500. '
preferences_fail_alert += ' Please enter an image height between 0 and 1500. '

exposure_mode = request.params['exposureMode']
image_effect = request.params['imageEffect']
Expand Down

0 comments on commit abf454f

Please sign in to comment.