Give filetype unicodestrings
This commit is contained in:
1 parent
649aad0551
commit
bf782f499a
1 file changed
+2
-2
@@ -72,9 +72,9 @@ class FileManager(Plugin):
|
|||||||
ft = db.query(FileType).filter_by(identifier = identifier).first()
|
ft = db.query(FileType).filter_by(identifier = identifier).first()
|
||||||
if not ft:
|
if not ft:
|
||||||
ft = FileType(
|
ft = FileType(
|
||||||
type = type,
|
type = toUnicode(type),
|
||||||
identifier = identifier,
|
identifier = identifier,
|
||||||
name = identifier[0].capitalize() + identifier[1:]
|
name = toUnicode(identifier[0].capitalize() + identifier[1:])
|
||||||
)
|
)
|
||||||
|
|
||||||
db.add(ft)
|
db.add(ft)
|
||||||
|
|||||||
Reference in new issue
Block a user