|
|
|
@@ -2972,3 +2972,12 @@ func OperateRepoModelNum(repoId int64, amount int64, engines ...*xorm.Engine) er |
|
|
|
func OperateRepoAITaskNum(repoId int64, amount int64, engines ...*xorm.Engine) error { |
|
|
|
return operateRepoCol(repoId, "ai_task_cnt", amount, engines...) |
|
|
|
} |
|
|
|
|
|
|
|
func UpdateRepositoryLastFourMonthCommits(repoID int64, amount int64) error { |
|
|
|
_, err := x.Exec("update repository set last_four_month_commits = ? where id = ?", amount, repoID) |
|
|
|
return err |
|
|
|
} |
|
|
|
func UpdateRepositoryLastMonthVisits(repoID int64, amount int64) error { |
|
|
|
_, err := x.Exec("update repository set last_month_visits = ? where id = ?", amount, repoID) |
|
|
|
return err |
|
|
|
} |