]> git.parisson.com Git - telemeta.git/commitdiff
modify image cache name
authorGuillaume Pellerin <yomguy@parisson.com>
Fri, 12 Nov 2010 11:05:39 +0000 (12:05 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Fri, 12 Nov 2010 11:05:39 +0000 (12:05 +0100)
telemeta/web/base.py

index 9cd8705a3e36f5ae229dede5480561825ba34d9b..2b545ff39a6405746dfb75d42d1ecf93f9c43ef8 100644 (file)
@@ -182,8 +182,8 @@ class WebView:
         if grapher.id() != grapher_id:
             raise Http404
         
-        suffix = '_'.join([grapher_id, width, height])
-        file = public_id + '.' + suffix + '.png'
+        size = width + '_' + height
+        file = '.'.join([public_id, grapher_id, size, 'png'])
         
         if not self.cache.exists(file):
             if item.file: