Oops, syntax error + styling footer

This commit is contained in:
Skia 2016-11-29 11:49:41 +01:00
parent 7f0561234f
commit a60063f009
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@ footer div{
}
footer a{
margin-left: 20px;
margin: 1px 20px;
}
/*---------------------------------FORMS-------------------------------*/

View File

@ -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