diff --git a/core/management/commands/fix_doab_covers.py b/core/management/commands/fix_doab_covers.py index 47e5d090..19e94189 100644 --- a/core/management/commands/fix_doab_covers.py +++ b/core/management/commands/fix_doab_covers.py @@ -12,7 +12,7 @@ class Command(BaseCommand): help = "fix bad covers for doab" def add_arguments(self, parser): - parser.add_argument('doab', nargs='?', type=str, default='', help="doab to fix") + parser.add_argument('doab', nargs='?', default='', help="doab to fix") def handle(self, doab, **options): if doab == 'list': diff --git a/core/management/commands/harvest_online_ebooks.py b/core/management/commands/harvest_online_ebooks.py index 4795f89c..6ab992fe 100644 --- a/core/management/commands/harvest_online_ebooks.py +++ b/core/management/commands/harvest_online_ebooks.py @@ -11,8 +11,8 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('limit', nargs='?', type=int, default=0, help="max to harvest") parser.add_argument('--ebook', nargs='?', type=int, default=0, help="ebook to harvest") - parser.add_argument('--provider', nargs='?', type=str, default='', help="provider to harvest") - parser.add_argument('--format', nargs='?', type=str, default='online', help="format to harvest") + parser.add_argument('--provider', nargs='?', default='', help="provider to harvest") + parser.add_argument('--format', nargs='?', default='online', help="format to harvest") def handle(self, limit=0, **options): limit = int(limit) if limit else 0 diff --git a/core/management/commands/harvest_remote_ebooks.py b/core/management/commands/harvest_remote_ebooks.py index 779fe053..386a7806 100644 --- a/core/management/commands/harvest_remote_ebooks.py +++ b/core/management/commands/harvest_remote_ebooks.py @@ -15,8 +15,8 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('limit', nargs='?', type=int, default=0, help="max to harvest") parser.add_argument('--ebook', nargs='?', type=int, default=0, help="ebook to harvest") - parser.add_argument('--provider', nargs='?', type=str, default='', help="provider to harvest") - parser.add_argument('--format', nargs='?', type=str, default='all', help="format to harvest") + parser.add_argument('--provider', nargs='?', default='', help="provider to harvest") + parser.add_argument('--format', nargs='?', default='all', help="format to harvest") def handle(self, limit=0, **options): limit = int(limit) if limit else 0 diff --git a/core/management/commands/load_by_doab.py b/core/management/commands/load_by_doab.py index 2022bc45..0df98aca 100644 --- a/core/management/commands/load_by_doab.py +++ b/core/management/commands/load_by_doab.py @@ -6,7 +6,7 @@ class Command(BaseCommand): help = "load doab books by doab_id via oai" def add_arguments(self, parser): - parser.add_argument('doab_ids', nargs='+', type=str, default=1, help="doab ids to add") + parser.add_argument('doab_ids', nargs='+', default=1, help="doab ids to add") def handle(self, doab_ids, **options): for doab_id in doab_ids: diff --git a/core/management/commands/load_doab.py b/core/management/commands/load_doab.py index 374e59b7..ba25eba9 100644 --- a/core/management/commands/load_doab.py +++ b/core/management/commands/load_doab.py @@ -12,7 +12,7 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('from_date', nargs='?', type=timefromiso, default=None, help="YYYY-MM-DD to start") - parser.add_argument('--from_id', nargs='?', type=str, default='', help="handle to start with") + parser.add_argument('--from_id', nargs='?', default='', help="handle to start with") parser.add_argument('--max', nargs='?', type=int, default=None, help="max desired records") def handle(self, **options): diff --git a/core/management/commands/remove_404s.py b/core/management/commands/remove_404s.py index 9ad14482..bf98f944 100644 --- a/core/management/commands/remove_404s.py +++ b/core/management/commands/remove_404s.py @@ -10,8 +10,8 @@ class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('limit', nargs='?', type=int, default=50, help="max to check") parser.add_argument('--ebook', nargs='?', type=int, default=0, help="ebook to check") - parser.add_argument('--provider', nargs='?', type=str, default='', help="provider to check") - parser.add_argument('--format', nargs='?', type=str, default='online', help="format to check") + parser.add_argument('--provider', nargs='?', default='', help="provider to check") + parser.add_argument('--format', nargs='?', default='online', help="format to check") def handle(self, limit=0, **options): limit = int(limit) if limit else 0