changed import calls and another bang

This commit is contained in:
Chris Pham
2018-02-08 14:44:20 -08:00
parent 345c75886d
commit 8b903d1299

View File

@@ -27,7 +27,7 @@ import os
import time
import PIL.ImageDraw
import signing
import MapHelper
import RoverMapHelper as MapHelper
#####################################
# Constants
@@ -241,8 +241,7 @@ class GMapsStitcher(object):
"""
new_value = self.upper_y - diff
if !(new_value > 0 and
new_value < self.big_image.size[1] - self.height):
if not new_value > 0 and (new_value < self.big_image.size[1] - self.height):
return self.upper_y
else:
return new_value