mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-12-22 13:14:28 +00:00
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
|
||||
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue