fix not in check

This commit is contained in:
hansenerd 2014-07-24 16:51:54 +02:00
parent 42ea85cad9
commit 04d1a78791
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class Post(object):
# rewrite relative img-srcs to full paths.
d = PyQuery(self.body)
for img in d.find('img'):
if not '/' in img.attrib['src']:
if '/' not in img.attrib['src']:
img.attrib['src'] = '{}{}/{}'.format(config.blogurl,
self.outputpath,
img.attrib['src'])