X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/f59e7c3de6bd0f85a61a4d9481db60cd7369ae92..062a80b51a89bf2361930461c0ad7ae5e36a2bdd:/apps/catalogue/management/commands/pack.py diff --git a/apps/catalogue/management/commands/pack.py b/apps/catalogue/management/commands/pack.py index 280c0f6ad..ba06341b8 100755 --- a/apps/catalogue/management/commands/pack.py +++ b/apps/catalogue/management/commands/pack.py @@ -2,9 +2,6 @@ # This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later. # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. # -import re -import sys -from cPickle import load, dump from optparse import make_option from django.core.management.base import BaseCommand @@ -24,7 +21,7 @@ class Command(BaseCommand): help='Exclude specific books by slug') ) help = 'Prepare ZIP package with files of given type.' - args = '[%s] output_path.zip' % '|'.join(ftypes) + args = '[%s] output_path.zip' % '|'.join(Book.formats) def handle(self, ftype, path, **options): self.style = color_style()