mirror of
https://github.com/veops/cmdb.git
synced 2025-08-07 10:03:14 +08:00
fix unicode encode error
This commit is contained in:
@@ -10,7 +10,7 @@ COPY . /data/apps/cmdb
|
||||
|
||||
WORKDIR /data/apps/cmdb
|
||||
|
||||
RUN yum install -y epel-release \
|
||||
RUN yum install -y epel-release && yum clean all\
|
||||
&& yum install -y python-pip \
|
||||
&& pip install --no-cache-dir -r docs/requirements.txt
|
||||
|
||||
|
@@ -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
@@ -3,4 +3,3 @@
|
||||
|
||||
from .account import User
|
||||
from .cmdb import *
|
||||
from .acl import *
|
||||
|
Reference in New Issue
Block a user