mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 11:28:06 +08:00
fix unicode encode error
This commit is contained in:
@@ -45,8 +45,8 @@ type_map = {
|
||||
'serialize': {
|
||||
Attribute.INT: int,
|
||||
Attribute.FLOAT: float,
|
||||
Attribute.TEXT: str,
|
||||
Attribute.TIME: str,
|
||||
Attribute.TEXT: lambda x: x if isinstance(x, six.text_type) else str(x),
|
||||
Attribute.TIME: lambda x: x if isinstance(x, six.text_type) else str(x),
|
||||
Attribute.DATE: lambda x: x.strftime("%Y-%m-%d"),
|
||||
Attribute.DATETIME: lambda x: x.strftime("%Y-%m-%d %H:%M:%S"),
|
||||
},
|
||||
|
0
api/lib/perm/acl/__init__.py
Normal file
0
api/lib/perm/acl/__init__.py
Normal file
Reference in New Issue
Block a user