mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
PEP8
This commit is contained in:
parent
31aa7bd8d1
commit
b92a8e6e4a
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ class MediaRepository(object):
|
||||||
thumbnails = {}
|
thumbnails = {}
|
||||||
for r_width, r_height, r_method, r_type in requirements:
|
for r_width, r_height, r_method, r_type in requirements:
|
||||||
if r_method == "crop":
|
if r_method == "crop":
|
||||||
thumbnails.setdefault((r_width, r_height,r_type), r_method)
|
thumbnails.setdefault((r_width, r_height, r_type), r_method)
|
||||||
elif r_method == "scale":
|
elif r_method == "scale":
|
||||||
t_width, t_height = thumbnailer.aspect(r_width, r_height)
|
t_width, t_height = thumbnailer.aspect(r_width, r_height)
|
||||||
t_width = min(m_width, t_width)
|
t_width = min(m_width, t_width)
|
||||||
|
|
Loading…
Reference in a new issue