From c4426f18fdb50c224e8a5211a1766dcf261eaff8 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 17 Apr 2020 19:38:14 +0200 Subject: [PATCH 1/1] bugfix --- .../management/commands/import_catalogue_from_wl_dump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( -- 2.20.1