Compare commits

..

No commits in common. "83248e040b40e1a2f373352d5c30c186598bddd0" and "213b7730ca66b4cfcb4e8c0d3ec7c31104ecd011" have entirely different histories.

1 changed files with 2 additions and 2 deletions

View File

@ -102,8 +102,8 @@ async def sethostname(get: CL.CL_SET_HOST,api_key: APIKey = Depends(auth.get_api
else: else:
return result[0][0] return result[0][0]
@app.post("/info/sethost_user") @app.post("/info/gethost_user")
async def sethost_user(get: CL.CL_SET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)): async def gethost_user(get: CL.CL_GET_HOST_USER,api_key: APIKey = Depends(auth.get_api_key)):
result = database(f"INSERT INTO `{get.dbname}`.user (lastlogon,user) VALUES ('{get.lastlogon}','{get.user}')","","") result = database(f"INSERT INTO `{get.dbname}`.user (lastlogon,user) VALUES ('{get.lastlogon}','{get.user}')","","")
if not result: if not result:
return False return False