Example #1
0
    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)
Example #2
0
	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)
Example #3
0
	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)
Example #4
0
    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)
Example #5
0
 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)