X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/118fd7ac41a586001b4c8f45c149731cc9a2e586..d8e360fe85b5f15df034d87f123f781f071d49a1:/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