From 0d7a1b9b5a848d42723ad2c2bd6dd23ba49b1c5c Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Thu, 5 Jul 2018 22:42:38 +0200 Subject: [PATCH] Bugfix --- utils/img.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/img.py b/utils/img.py index dfe43d6..35d1049 100644 --- a/utils/img.py +++ b/utils/img.py @@ -122,10 +122,10 @@ class ImageCache(object): self.cache_attachment(url) def get_actor_icon(self, url: str, size: int) -> Any: - return self._get_file(url, size, Kind.ACTOR_ICON) + return self.get_file(url, size, Kind.ACTOR_ICON) def get_attachment(self, url: str, size: int) -> Any: - return self._get_file(url, size, Kind.ATTACHMENT) + return self.get_file(url, size, Kind.ATTACHMENT) def get_file(self, url: str, size: int, kind: Kind) -> Any: return self.fs.find_one({"url": url, "size": size, "kind": kind.value})