forked from openlp/openlp
Fix pep8
This commit is contained in:
parent
cf351a7af9
commit
5dc722e017
@ -590,7 +590,8 @@ class ImageMediaItem(MediaManagerItem):
|
|||||||
# Continue with the existing images.
|
# Continue with the existing images.
|
||||||
for filename in images_file_names:
|
for filename in images_file_names:
|
||||||
name = os.path.split(filename)[1]
|
name = os.path.split(filename)[1]
|
||||||
service_item.add_from_image(filename, ImageSource.ImagePlugin, background, os.path.join(self.service_path, name))
|
service_item.add_from_image(filename, ImageSource.ImagePlugin, background,
|
||||||
|
os.path.join(self.service_path, name))
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def check_group_exists(self, new_group):
|
def check_group_exists(self, new_group):
|
||||||
|
@ -407,7 +407,7 @@ class HttpRouter(RegistryProperties):
|
|||||||
'thumbnails/' + full_path))
|
'thumbnails/' + full_path))
|
||||||
if os.path.exists(full_path):
|
if os.path.exists(full_path):
|
||||||
ext, content_type = self.get_content_type(full_path)
|
ext, content_type = self.get_content_type(full_path)
|
||||||
image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin , width, height)
|
image = self.image_manager.get_image(full_path, ImageSource.ImagePlugin, width, height)
|
||||||
content = image_to_byte(image, False)
|
content = image_to_byte(image, False)
|
||||||
if len(content) == 0:
|
if len(content) == 0:
|
||||||
return self.do_not_found()
|
return self.do_not_found()
|
||||||
|
Loading…
Reference in New Issue
Block a user