better print

master
Aevann 2024-10-29 21:14:54 +03:00
parent 090ba46f28
commit a6e97d8765
1 changed files with 2 additions and 2 deletions

View File

@ -450,7 +450,7 @@ def _cleanup_videos():
)
for post in unpublished_drafts:
if post.media_usages:
print(f'deleted videos in draft post: {post.id}', flush=True)
print(f'marked videos for deletion in draft post: {post.id}', flush=True)
for media_usage in post.media_usages:
if not media_usage.removed_utc:
media_usage.removed_utc = time.time()
@ -458,7 +458,7 @@ def _cleanup_videos():
for comment in post.comments:
if comment.media_usages:
print(f'deleted videos in draft comment: {comment.id}', flush=True)
print(f'marked videos for deletion in draft comment: {comment.id}', flush=True)
for media_usage in comment.media_usages:
if not media_usage.removed_utc:
media_usage.removed_utc = time.time()