X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/ea300f6c03d47f6c17dd7721b8d6690489af79da..fd65827f7d34921b927dfd735099b0690aa3a2df:/catalogue/management/commands/importlessons.py diff --git a/catalogue/management/commands/importlessons.py b/catalogue/management/commands/importlessons.py index 83bf68b..3bd05ad 100755 --- a/catalogue/management/commands/importlessons.py +++ b/catalogue/management/commands/importlessons.py @@ -46,8 +46,8 @@ class Command(BaseCommand): read_dir(fullname) else: f = IOFile.from_filename(fullname) - files[name] = f - files.setdefault(name.replace(" ", ""), f) + files[name.decode('utf-8')] = f + files.setdefault(name.replace(" ", "").decode('utf-8'), f) read_dir(path) return files