mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-25 18:44:23 +00:00
Oops, syntax error + styling footer
This commit is contained in:
parent
7f0561234f
commit
a60063f009
@ -355,7 +355,7 @@ footer div{
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer a{
|
footer a{
|
||||||
margin-left: 20px;
|
margin: 1px 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*---------------------------------FORMS-------------------------------*/
|
/*---------------------------------FORMS-------------------------------*/
|
||||||
|
@ -17,7 +17,7 @@ class Picture(SithFile):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def is_vertical(self):
|
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()))
|
im = Image.open(BytesIO(f.read()))
|
||||||
(w, h) = im.size
|
(w, h) = im.size
|
||||||
return (w / h) < 1
|
return (w / h) < 1
|
||||||
|
Loading…
Reference in New Issue
Block a user