merge upstream

Signed-off-by: wozulong <>
This commit is contained in:
wozulong
2024-07-22 10:51:49 +08:00
11 changed files with 128 additions and 30 deletions

View File

@@ -102,7 +102,7 @@ func GetAllLogs(logType int, startTimestamp int64, endTimestamp int64, modelName
tx = DB.Where("type = ?", logType)
}
if modelName != "" {
tx = tx.Where("model_name = ?", modelName)
tx = tx.Where("model_name like ?", "%"+modelName+"%")
}
if username != "" {
tx = tx.Where("username = ?", username)