mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-21 21:53:30 +00:00
Oops, syntax error + styling footer
This commit is contained in:
parent
7f0561234f
commit
a60063f009
@ -355,7 +355,7 @@ footer div{
|
||||
}
|
||||
|
||||
footer a{
|
||||
margin-left: 20px;
|
||||
margin: 1px 20px;
|
||||
}
|
||||
|
||||
/*---------------------------------FORMS-------------------------------*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user