From d9e5d0484e0bae0268b4575e189700beda93f93d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20St=C4=99pniowski?= Date: Thu, 23 Apr 2009 22:24:45 +0200 Subject: [PATCH] Added importing links from wikipedia to import_links.py script. --- scripts/import_links.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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') -- 2.20.1