Explorar o código

Added TODO

Signed-off-by: Duncan Lock <duncan.lock@gmail.com>
Duncan Lock %!s(int64=12) %!d(string=hai) anos
pai
achega
b823710a93
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      better_figures_and_images/better_figures_and_images.py

+ 2 - 0
better_figures_and_images/better_figures_and_images.py

@@ -44,6 +44,8 @@ def content_object_init(instance):
 
         if 'img' in content:
             for img in soup('img'):
+                # TODO: Pretty sure this isn't the right way to do this, too hard coded.
+                # There must be a setting that I should be using?
                 src = instance.settings['PATH'] + '/images/' + os.path.split(img['src'])[1]
                 im = Image.open(src)
                 extra_style = 'width: {}px;'.format(im.size[0])