This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
wangwei
/
aiforge
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
128
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
提交代码。
Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.21.12.1^2
zouap
4 years ago
parent
294077e2fe
commit
d566153017
1 changed files
with
1 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
models/ai_model_manage.go
+ 1
- 2
models/ai_model_manage.go
View File
@@ -118,9 +118,8 @@ func ModifyModelNewProperty(id string, new int, versioncount int) error {
}
func ModifyModelDownloadCount(id string) error {
var sess *xorm.Session
sess := x.NewSession()
defer sess.Close()
if _, err := sess.Exec("UPDATE `ai_model_manage` SET download_count = download_count + 1 WHERE id = ?", id); err != nil {
return err
}
Write
Preview
Loading…
Cancel
Save