]> git.scottworley.com Git - paperdoorknob/blobdiff - images.py
renderIcon makes bytes
[paperdoorknob] / images.py
index d9926a3c1387b072919855b3c78d9bc023a8e719..7932091668d20a47c53c71e5ebcc49267818ee24 100644 (file)
--- a/images.py
+++ b/images.py
@@ -32,7 +32,7 @@ class DiskImageStore(ImageStore):
 
     def _filename(self, url: str) -> str:
         assert url not in self._images
 
     def _filename(self, url: str) -> str:
         assert url not in self._images
-        base = os.path.basename(url)
+        base = os.path.basename(url).replace('%', '').split('?')[0]
         if base not in self._filenames:
             return base
         stem, ext = os.path.splitext(base)
         if base not in self._filenames:
             return base
         stem, ext = os.path.splitext(base)