def handle(self, *args, **options):
     min_stop_id = int(options['min_stop_id']) if options['min_stop_id'] else None
     max_stop_id = int(options['max_stop_id']) if options['max_stop_id'] else None
     importer.run(
         options['url'], options['dest'],
         min_stop_id=min_stop_id,
         max_stop_id=max_stop_id,
         prime_cache=not options['no_prime'],
     )
Example #2
0
 def handle(self, *args, **options):
     min_stop_id = int(options["min_stop_id"]) if options["min_stop_id"] else None
     max_stop_id = int(options["max_stop_id"]) if options["max_stop_id"] else None
     importer.run(
         options["url"],
         options["dest"],
         min_stop_id=min_stop_id,
         max_stop_id=max_stop_id,
         prime_cache=not options["no_prime"],
     )
Example #3
0
 def handle(self, *args, **options):
     min_stop_id = int(
         options['min_stop_id']) if options['min_stop_id'] else None
     max_stop_id = int(
         options['max_stop_id']) if options['max_stop_id'] else None
     importer.run(
         options['url'],
         options['dest'],
         min_stop_id=min_stop_id,
         max_stop_id=max_stop_id,
         prime_cache=not options['no_prime'],
     )
Example #4
0
 def handle(self, *args, **options):
     dest = None
     if len(args) == 1:
         dest = args[0]
     importer.run(self.url, dest)
Example #5
0
 def handle(self, *args, **options):
     dest = None
     if len(args) == 1:
         dest = args[0]
     importer.run(self.url, dest)