type=str not needed
parent
c7e2ae7b25
commit
4a86646644
|
@ -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':
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue