Formatting

This commit is contained in:
Thomas Sileo 2019-07-21 21:53:10 +02:00
parent 48618c9694
commit f9195bac80
2 changed files with 6 additions and 2 deletions

4
gc.py
View file

@ -92,7 +92,9 @@ def perform() -> None:
# TODO(tsileo): remove after tests
if meta.get("keep"):
logger.warning(f"{activity!r} would not have been deleted, skipping for now")
logger.warning(
f"{activity!r} would not have been deleted, skipping for now"
)
continue
# Delete the cached attachment

View file

@ -65,7 +65,9 @@ class MediaCache(object):
url = attachment["url"]
# Ensure it's not already there
if self.fs.find_one({"url": url, "kind": Kind.ATTACHMENT.value, "remote_id": remote_id}):
if self.fs.find_one(
{"url": url, "kind": Kind.ATTACHMENT.value, "remote_id": remote_id}
):
return
# If it's an image, make some thumbnails