streamline printing

master
Aevann 2024-10-29 21:10:19 +03:00
parent 8f4e46f1d2
commit 4b397eb1ef
1 changed files with 4 additions and 2 deletions

View File

@ -449,6 +449,7 @@ def _cleanup_videos():
Post.deleted_utc == 0,
)
for post in unpublished_drafts:
if post.media_usages:
print(f'draft post: {post.id}', flush=True)
for media_usage in post.media_usages:
if not media_usage.removed_utc:
@ -457,6 +458,7 @@ def _cleanup_videos():
g.db.add(media_usage)
for comment in post.comments:
if comment.media_usages:
print(f'draft comment: {comment.id}', flush=True)
for media_usage in comment.media_usages:
if not media_usage.removed_utc: