def handle(self, *args, **options): calima = Calima(path=args[0]) ## Specify the year if len(args) > 1: calima.generarDatosAnual(map(int, args[1:])) else: calima.generarDatosAnual() station_importer(calima.estaciones)
def updateStation(): """ Periodic task that updates the lastest anual data and import it to the model """ try: path = settings.BASEDIR_DATA except AttributeError: # This should not happen I guess path = '/tmp/' calima = Calima(path=path) calima.actualizar() station_importer(calima.estaciones)
def updateStation(): """ Periodic task that updates the lastest anual data and import it to the model """ try: path = settings.BASEDIR_DATA except AttributeError: # This should not happen I guess path = "/tmp/" calima = Calima(path=path) calima.actualizar() station_importer(calima.estaciones)