8 lines
327 B
Python
8 lines
327 B
Python
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") |