def handle(self, *args, **options): from prometapi.models import dump_data, Cameras import datetime if len(args): day = datetime.datetime.strptime(args[0], '%Y-%m-%d') else: day = datetime.datetime.now() - datetime.timedelta(2) dump_data(model=Cameras, day=day)
def handle(self, *args, **options): from prometapi.models import dump_data from prometapi.bicikeljproxy.models import BicikeljData import datetime if len(args): day = datetime.datetime.strptime(args[0], '%Y-%m-%d') else: day = datetime.datetime.now() - datetime.timedelta(2) dump_data(model=BicikeljData, day=day)
def handle(self, *args, **options): from prometapi.models import dump_data import datetime from prometapi.sos112.models import SOS112 if len(args): day = datetime.datetime.strptime(args[0], '%Y-%m-%d') else: day = datetime.datetime.now() - datetime.timedelta(2) dump_data(model=SOS112, day=day)