修改一下进程管理相关问题

This commit is contained in:
2025-11-15 22:35:25 +08:00
parent c15c29850c
commit caba4482bc
4 changed files with 70 additions and 7 deletions

View File

@@ -0,0 +1,8 @@
from django.core.management.base import BaseCommand
from elastic.es_connect import create_index_with_mapping, get_analytics_overview
class Command(BaseCommand):
def handle(self, *args, **options):
create_index_with_mapping()
get_analytics_overview(force=True)
self.stdout.write("analytics updated")