Skip to content
Extraits de code Groupes Projets
Valider 0842a9e8 rédigé par Bram's avatar Bram
Parcourir les fichiers

[enh] new command to import directly from compotista public instance

parent 98dd49d3
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
import json
from urllib2 import urlopen
from django.core.management.base import BaseCommand
from representatives.utils import import_representatives_from_format
class Command(BaseCommand):
def handle(self, *args, **options):
import_representatives_from_format(json.load(urlopen("http://compotista.mm.staz.be/latest/")), verbose=True)
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter