kopia lustrzana https://dev.funkwhale.audio/funkwhale/funkwhale
15 wiersze
418 B
Python
15 wiersze
418 B
Python
"""
|
|
Compute different sizes of image used for Album covers and User avatars
|
|
"""
|
|
|
|
from funkwhale_api.music.models import Upload
|
|
|
|
|
|
def main(command, **kwargs):
|
|
queryset = Upload.objects.filter(
|
|
source__startswith="http", source__contains="/federation/music/file/"
|
|
).exclude(source__contains="youtube")
|
|
total = queryset.count()
|
|
command.stdout.write(f"{total} uploads found")
|
|
queryset.delete()
|