mirror of https://github.com/veops/cmdb.git
vue lint
This commit is contained in:
parent
de22a4e04b
commit
618cd7ff16
|
@ -1,5 +1,8 @@
|
||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import datetime
|
import datetime
|
||||||
|
|
||||||
import six
|
import six
|
||||||
|
@ -37,8 +40,8 @@ type_map = {
|
||||||
'deserialize': {
|
'deserialize': {
|
||||||
Attribute.INT: string2int,
|
Attribute.INT: string2int,
|
||||||
Attribute.FLOAT: float,
|
Attribute.FLOAT: float,
|
||||||
Attribute.TEXT: escape,
|
Attribute.TEXT: lambda x: escape(x).encode('utf-8').decode('utf-8'),
|
||||||
Attribute.TIME: escape,
|
Attribute.TIME: lambda x: escape(x).encode('utf-8').decode('utf-8'),
|
||||||
Attribute.DATETIME: str2datetime,
|
Attribute.DATETIME: str2datetime,
|
||||||
Attribute.DATE: str2datetime,
|
Attribute.DATE: str2datetime,
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
# -*- coding:utf-8 -*-
|
# -*- coding:utf-8 -*-
|
||||||
|
|
||||||
|
|
||||||
|
from __future__ import unicode_literals
|
||||||
|
|
||||||
import markupsafe
|
import markupsafe
|
||||||
from flask import abort
|
from flask import abort
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,6 @@ services:
|
||||||
CMDB_API_HOST: cmdb-api:5000
|
CMDB_API_HOST: cmdb-api:5000
|
||||||
NGINX_PORT: 80
|
NGINX_PORT: 80
|
||||||
volumes:
|
volumes:
|
||||||
- "$PWD/conf.d:/etc/nginx/conf.d"
|
|
||||||
- ./docs/nginx.cmdb.conf.example:/etc/nginx/conf.d/nginx.cmdb.conf.example
|
- ./docs/nginx.cmdb.conf.example:/etc/nginx/conf.d/nginx.cmdb.conf.example
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
|
|
Loading…
Reference in New Issue