Skip to content

Commit

Permalink
Fix bug with missing thumbnails
Browse files Browse the repository at this point in the history
Fixes #323
  • Loading branch information
JWCook committed May 31, 2023
1 parent 2df9dbb commit 6725c0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naturtag/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def search(self, **params) -> WrapperPaginator[Taxon]:
class ImageSession(ClientSession):
def __init__(self, *args, cache_path: Path = IMAGE_CACHE, **kwargs):
super().__init__(*args, per_second=5, per_minute=400, **kwargs)
self.image_cache = SQLiteDict(cache_path, 'images', no_serializer=True)
self.image_cache = SQLiteDict(cache_path, 'images', serializer=None)

def get_image(
self, photo: Photo, url: Optional[str] = None, size: Optional[str] = None
Expand Down

0 comments on commit 6725c0b

Please sign in to comment.