Skip to content

Commit 3dfbc3d

Browse files
Update main.py
1 parent 31ea275 commit 3dfbc3d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

app/main.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,15 +71,15 @@ def test_latency(
7171

7272
@app.post("/api/test-latency")
7373
def api_test_latency(
74-
dbtype: str,
75-
host: str = "",
76-
port: str = "",
77-
username: str = "",
78-
password: str = "",
79-
database: str = "",
80-
url: str = "",
81-
interval: float = 1.0,
82-
period: int = 10,
74+
dbtype: str = Form(...),
75+
host: str = Form(""),
76+
port: str = Form(""),
77+
username: str = Form(""),
78+
password: str = Form(""),
79+
database: str = Form(""),
80+
url: str = Form(""),
81+
interval: float = Form(1.0),
82+
period: int = Form(10),
8383
credentials: HTTPBasicCredentials = Depends(security)
8484
):
8585
# For API/CLI use -- returns result JSON

0 commit comments

Comments
 (0)