X-Git-Url: http://git.scottworley.com/paperdoorknob/blobdiff_plain/d59b46dbd038d61afd875c04e6dcc39e9395f414..39db9a10878f8bac785178a85b2f548f4b24684b:/images.py?ds=sidebyside diff --git a/images.py b/images.py index 68a9696..7932091 100644 --- 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 - base = os.path.basename(url).replace('%', '') + base = os.path.basename(url).replace('%', '').split('?')[0] if base not in self._filenames: return base stem, ext = os.path.splitext(base)