mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-09 19:40:19 +00:00
Oops, syntax error + styling footer
This commit is contained in:
@ -17,7 +17,7 @@ class Picture(SithFile):
|
||||
|
||||
@property
|
||||
def is_vertical(self):
|
||||
with open(settings.MEDIA_ROOT + self.file.name).encode('utf-8'), 'rb') as f:
|
||||
with open((settings.MEDIA_ROOT + self.file.name).encode('utf-8'), 'rb') as f:
|
||||
im = Image.open(BytesIO(f.read()))
|
||||
(w, h) = im.size
|
||||
return (w / h) < 1
|
||||
|
Reference in New Issue
Block a user