forked from forks/microblog.pub
Formatting
This commit is contained in:
parent
48618c9694
commit
f9195bac80
2 changed files with 6 additions and 2 deletions
4
gc.py
4
gc.py
|
@ -92,7 +92,9 @@ def perform() -> None:
|
||||||
|
|
||||||
# TODO(tsileo): remove after tests
|
# TODO(tsileo): remove after tests
|
||||||
if meta.get("keep"):
|
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
|
continue
|
||||||
|
|
||||||
# Delete the cached attachment
|
# Delete the cached attachment
|
||||||
|
|
|
@ -65,7 +65,9 @@ class MediaCache(object):
|
||||||
url = attachment["url"]
|
url = attachment["url"]
|
||||||
|
|
||||||
# Ensure it's not already there
|
# 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
|
return
|
||||||
|
|
||||||
# If it's an image, make some thumbnails
|
# If it's an image, make some thumbnails
|
||||||
|
|
Loading…
Reference in a new issue