From c8d009ca75b2473e9235289d31bc63dcb846fdd5 Mon Sep 17 00:00:00 2001 From: eric Date: Fri, 31 Dec 2021 14:05:28 -0500 Subject: [PATCH] read all records --- core/management/commands/load_books_pbdata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/management/commands/load_books_pbdata.py b/core/management/commands/load_books_pbdata.py index ddb83c3f..4b5fa3b9 100644 --- a/core/management/commands/load_books_pbdata.py +++ b/core/management/commands/load_books_pbdata.py @@ -26,7 +26,7 @@ class Command(BaseCommand): from_date = datetime.strptime(options['from_date'], '%m-%d-%Y') except ValueError: from_date = datetime.strptime('1-1-2000', '%m-%d-%Y') - for record in pb_metadata[50:51]: + for record in pb_metadata: if 'updated' in record: updated = datetime.strptime(record['updated'], '%m-%d-%Y') if updated < from_date: