Refine
This commit is contained in:
6
main.py
6
main.py
@@ -2045,15 +2045,15 @@ async def fastapi_get_all_scada_info(network: str) -> list[dict[str, float]]:
|
||||
# user 39
|
||||
###########################################################
|
||||
@app.get('/getuserschema/')
|
||||
async def fastapi_get_user_schema(network: str) -> dict[str, dict[str, Any]]:
|
||||
async def fastapi_get_user_schema(network: str) -> dict[str, dict[Any, Any]]:
|
||||
return get_user_schema(network)
|
||||
|
||||
@app.get('/getuser/')
|
||||
async def fastapi_get_user(network: str, user_name: str) -> dict[str, float]:
|
||||
async def fastapi_get_user(network: str, user_name: str) -> dict[Any, Any]:
|
||||
return get_user(network, user_name)
|
||||
|
||||
@app.get('/getallusers/')
|
||||
async def fastapi_get_all_users(network: str) -> list[dict[str, float]]:
|
||||
async def fastapi_get_all_users(network: str) -> list[dict[Any, Any]]:
|
||||
return get_all_users(network)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user