Source code for nkdsu.apps.vote.management.commands.update_local_data

import subprocess

from django.core.management import call_command
from django.core.management.base import BaseCommand


[docs] class Command(BaseCommand):
[docs] def handle(self, *args, **kwargs) -> None: call_command('update_emoji_lists') call_command('update_mastodon_instances') print( subprocess.check_output( ['git', 'submodule', 'foreach', 'git', 'pull', 'origin', 'master'] ) )