From cb9f6b4a1bb0c7fb6aa90d649738ec0009fe4c49 Mon Sep 17 00:00:00 2001 From: Stu Young Date: Fri, 1 Nov 2019 17:32:47 -0400 Subject: [PATCH] fix example in history backfill command (#22224) --- .../management/commands/backfill_history.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/openedx/core/djangoapps/content/course_overviews/management/commands/backfill_history.py b/openedx/core/djangoapps/content/course_overviews/management/commands/backfill_history.py index 6b0bdefe9c..510cd5956d 100644 --- a/openedx/core/djangoapps/content/course_overviews/management/commands/backfill_history.py +++ b/openedx/core/djangoapps/content/course_overviews/management/commands/backfill_history.py @@ -15,7 +15,7 @@ class Command(BaseCommand): """ Backfill history for models using django-simple-history. Example usage: - $ ./manage.py lms backfill_history --batchsize 1000 --sleep_between 1 --settings=devstack + $ ./manage.py lms backfill_history --batch_size 1000 --sleep_between 1 --input_root /tmp/data/ --settings=devstack """ help = ( @@ -57,7 +57,7 @@ class Command(BaseCommand): ) parser.add_argument( - "--size", + "--batch_size", action="store", default=self.DEFAULT_SIZE, type=int, @@ -67,6 +67,7 @@ class Command(BaseCommand): parser.add_argument( "--input_root", action="store", + help="Path containing data files from snapshot for history backfill" ) def chunks(self, ids, chunk_size): @@ -78,7 +79,7 @@ class Command(BaseCommand): return values def handle(self, *args, **options): - batch_size = options['size'] + batch_size = options['batch_size'] sleep_between = options['sleep_between'] input_root = options['input_root']