From: Radek Czajka Date: Fri, 17 Apr 2020 17:38:14 +0000 (+0200) Subject: bugfix X-Git-Url: https://git.mdrn.pl/redakcja.git/commitdiff_plain/c4426f18fdb50c224e8a5211a1766dcf261eaff8 bugfix --- diff --git a/src/catalogue/management/commands/import_catalogue_from_wl_dump.py b/src/catalogue/management/commands/import_catalogue_from_wl_dump.py index 2ce39f06..29d32753 100644 --- a/src/catalogue/management/commands/import_catalogue_from_wl_dump.py +++ b/src/catalogue/management/commands/import_catalogue_from_wl_dump.py @@ -18,7 +18,7 @@ def parse_name(name): def find_wikidata(link, lang): link = link.rstrip() title = link.rsplit("/", 1)[-1] - title = link.split("#", 1)[0] + title = title.split("#", 1)[0] title = title.replace(" ", "_") data = json.load( urlopen(