Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
pep8.
Browse files Browse the repository at this point in the history
  • Loading branch information
vegitron committed Apr 6, 2015
1 parent d88a1b8 commit b704632
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions sqlshare_rest/management/commands/run_query_queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ class Command(BaseCommand):

option_list = BaseCommand.option_list + (
make_option('--run-once',
dest='run_once',
default=False,
action="store_true",
help='This will only process one item in the queue'),
)

dest='run_once',
default=False,
action="store_true",
help='This will only process one item in the queue'),
)

def handle(self, *args, **options):
if not options["run_once"]:
raise Exception("Only handles run_once for now")

process_queue()

0 comments on commit b704632

Please sign in to comment.