mirror of https://github.com/veops/cmdb.git
add library future
This commit is contained in:
parent
c305aaaef6
commit
9c47d9c733
|
@ -41,6 +41,7 @@ toposort = ">=1.5"
|
|||
requests = ">=2.22.0"
|
||||
PyJWT = ">=1.7.1"
|
||||
elasticsearch = "==7.0.4"
|
||||
future = "==0.18.2"
|
||||
|
||||
[dev-packages]
|
||||
# Testing
|
||||
|
|
|
@ -12,7 +12,7 @@ from future.moves.urllib.parse import urlparse
|
|||
|
||||
|
||||
def build_api_key(path, params):
|
||||
g.user is not None or abort(403, "您得登陆才能进行该操作")
|
||||
g.user is not None or abort(403, "You have to login to do this")
|
||||
key = g.user.key
|
||||
secret = g.user.secret
|
||||
values = "".join([str(params[k]) for k in sorted(params.keys())
|
||||
|
|
|
@ -36,3 +36,4 @@ toposort>=1.5
|
|||
requests >= 2.22.0
|
||||
PyJWT >= 1.7.1
|
||||
elasticsearch == 7.0.4
|
||||
future == 0.18.2
|
||||
|
|
Loading…
Reference in New Issue