Files
NoN-Site/nonpacks/library/management/commands/refresh_vanilla_index.py
T

12 lines
393 B
Python

from django.core.management.base import BaseCommand
from library.vanilla_textures import refresh_vanilla_index
class Command(BaseCommand):
help = 'Rebuild the vanilla entity-texture index (media/vanilla/entity_index.json).'
def handle(self, *args, **options):
index = refresh_vanilla_index()
self.stdout.write(self.style.SUCCESS(f'Indexed {len(index)} entities.'))