From 1641b73d608d49a54feb8227242ea82bd4e6a3be Mon Sep 17 00:00:00 2001 From: Dustin Broderick Date: Wed, 6 Dec 2017 11:13:10 -0700 Subject: [PATCH] Renames non-atomic flag to non_atomic (to prevent flag being non) --- watson/management/commands/buildwatson.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watson/management/commands/buildwatson.py b/watson/management/commands/buildwatson.py index 79e1599..f677377 100644 --- a/watson/management/commands/buildwatson.py +++ b/watson/management/commands/buildwatson.py @@ -93,7 +93,7 @@ class Command(BaseCommand): changes or the index will be incomplete." ) parser.add_argument( - '--non-atomic', + '--non_atomic', action='store_true', default=False, help="Commit index entries in batches. WARNING: if buildwatson failse, \ @@ -123,7 +123,7 @@ class Command(BaseCommand): # Do we do a partial index and how large should the batches be? slim = options.get("slim") batch_size = options.get("batch_size") - non_atomic = options.get("non-atomic") + non_atomic = options.get("non_atomic") # work-around for legacy optparser hack in BaseCommand. In Django=1.10 the # args are collected in options['apps'], but in earlier versions they are