ADD VOLUME_MOUNT

This commit is contained in:
2023-08-17 19:27:47 +02:00
parent f71cd911a7
commit caabba1d1c
+1 -1
View File
@@ -104,7 +104,7 @@ async def add_ad_user(get: CL.CL_ADD_AD_GROUP,api_key: APIKey = Depends(auth.get
@app.post("/volume_mount")
async def volume_mount(get: CL.CL_GET_VOLUME,api_key: APIKey = Depends(auth.get_api_key)):
database(f"INSERT INTO `Volume_Mount` (date,user) VALUES ({get.date},{get.user})","Stines-GmbH","")
database(f"INSERT INTO `Volume_Mount` (date,user) VALUES (`{get.date}`,`{get.user}`)","Stines-GmbH","")
return f"User {get.user} ADD"
## Startet den API-Server