Exemple #1
0
 def handle(self, *args, **options):
     tap_list_provider = DigitalPourParser()
     with transaction.atomic():
         for venue in tap_list_provider.get_venues():
             self.stdout.write('Processing %s' % venue.name)
             tap_list_provider.handle_venue(venue)
     self.stdout.write(self.style.SUCCESS('Done!'))
 def handle(self, *args, **options):
     if not BeerStyle.objects.exists():
         raise ValueError('You must import BJCP styles before continuing')
     tap_list_provider = DigitalPourParser()
     with transaction.atomic():
         for venue in tap_list_provider.get_venues():
             self.stdout.write('Processing %s' % venue.name)
             tap_list_provider.handle_venue(venue)
     self.stdout.write(self.style.SUCCESS('Done!'))
Exemple #3
0
 def handle(self, *args, **options):
     tap_list_provider = DigitalPourParser()
     with transaction.atomic():
         for venue in tap_list_provider.get_venues():
             self.stdout.write("Processing %s" % venue.name)
             timestamp = tap_list_provider.handle_venue(venue)
             tap_list_provider.update_venue_timestamps(venue, timestamp)
     self.stdout.write(self.style.SUCCESS("Done!"))