[lib][routes] fix dict construction

This commit is contained in:
Maxime Alves LIRMM 2020-09-21 11:26:51 +02:00
parent 142ea24630
commit 7337246fc1
3 changed files with 14 additions and 32 deletions

View File

@ -15,7 +15,7 @@ uvicorn = "*"
jwt = "*"
[requires]
python_version = "3.7"
python_version = "3"
[scripts]
halfapi = "halfapi.cli.cli:cli"

38
Pipfile.lock generated
View File

@ -1,11 +1,11 @@
{
"_meta": {
"hash": {
"sha256": "1aa77121b26e1c7d4ca46c69731c67d777a2f322fb8fce1d8259e6c483740fa1"
"sha256": "040d376fdc89786fb593364314c0a5baccbc458299ecd362da2ed025e130825f"
},
"pipfile-spec": 6,
"requires": {
"python_version": "3.7"
"python_version": "3"
},
"sources": [
{
@ -193,11 +193,11 @@
"develop": {
"attrs": {
"hashes": [
"sha256:0ef97238856430dcf9228e07f316aefc17e8939fc8507e18c6501b761ef1a42a",
"sha256:2867b7b9f8326499ab5b0e2d12801fa5c98842d2cbd22b35112ae04bf85b4dff"
"sha256:26b54ddbbb9ee1d34d5d3668dd37d6cf74990ab23c828c2888dccdceee395594",
"sha256:fce7fc47dfc976152e82d53ff92fa0407700c21acd20886a13777a0d20e655dc"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==20.1.0"
"version": "==20.2.0"
},
"certifi": {
"hashes": [
@ -221,14 +221,6 @@
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==2.10"
},
"importlib-metadata": {
"hashes": [
"sha256:90bb658cdbbf6d1735b6341ce708fc7024a3e14e99ffdc5783edea9f9b077f83",
"sha256:dc15b2969b4ce36305c51eebe62d418ac7791e9a157911d58bfb1f9ccd8e2070"
],
"markers": "python_version < '3.8'",
"version": "==1.7.0"
},
"iniconfig": {
"hashes": [
"sha256:80cf40c597eb564e86346103f609d74efce0f6b4d4f30ec8ce9e2c26411ba437",
@ -238,11 +230,11 @@
},
"more-itertools": {
"hashes": [
"sha256:68c70cc7167bdf5c7c9d8f6954a7837089c6a36bf565383919bb595efb8a17e5",
"sha256:b78134b2063dd214000685165d81c154522c3ee0a1c0d4d113c80361c234c5a2"
"sha256:6f83822ae94818eae2612063a5101a7311e68ae8002005b5e05f03fd74a86a20",
"sha256:9b30f12df9393f0d28af9210ff8efe48d10c94f73e5daf886f10c4b0b0b4f03c"
],
"markers": "python_version >= '3.5'",
"version": "==8.4.0"
"version": "==8.5.0"
},
"packaging": {
"hashes": [
@ -278,11 +270,11 @@
},
"pytest": {
"hashes": [
"sha256:85228d75db9f45e06e57ef9bf4429267f81ac7c0d742cc9ed63d09886a9fe6f4",
"sha256:8b6007800c53fdacd5a5c192203f4e531eb2a1540ad9c752e052ec0f7143dbad"
"sha256:0e37f61339c4578776e090c3b8f6b16ce4db333889d65d0efb305243ec544b40",
"sha256:c8f57c2a30983f469bf03e68cdfa74dc474ce56b8f280ddcb080dfd91df01043"
],
"index": "pypi",
"version": "==6.0.1"
"version": "==6.0.2"
},
"pytest-asyncio": {
"hashes": [
@ -322,14 +314,6 @@
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4' and python_version < '4'",
"version": "==1.25.10"
},
"zipp": {
"hashes": [
"sha256:aa36550ff0c0b7ef7fa639055d797116ee891440eac1a56f378e2d3179e0320b",
"sha256:c599e4d75c98f6798c509911d08a22e6c021d074469042177c8c86fb92eefd96"
],
"markers": "python_version >= '3.6'",
"version": "==3.1.0"
}
}
}

View File

@ -49,10 +49,8 @@ def get_routes(domains=None):
req, *args,
**{
**kwargs,
**{
'acl': f'{acls_mod.__name__}.{acl_fct_name}',
'keys': keys
}
'acl': f'{acls_mod.__name__}.{acl_fct_name}',
'keys': keys
})
raise HTTPException(401)