X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1e5176481313c3129d2f353993dbb721b21ef232..f12a9837a7a7a49507106a1f0d4d335b682fe1f6:/scripts/import_links.py?ds=inline diff --git a/scripts/import_links.py b/scripts/import_links.py index ea4380fb8..671212d83 100644 --- a/scripts/import_links.py +++ b/scripts/import_links.py @@ -13,7 +13,7 @@ setup_environ(settings) from catalogue.models import Book, Tag -def import_tags(file_name, attribute): +def import_links(file_name, attribute): for line in file(file_name): slug, link = line.split() link = link.strip('\n') @@ -32,5 +32,5 @@ def import_tags(file_name, attribute): print 'Invalid slug %s!' % slug -import_tags('gazeta-links', 'gazeta_link') - +import_links('gazeta-links', 'gazeta_link') +import_links('wiki-links', 'wiki_link')