mirror of
https://github.com/gogs/gogs.git
synced 2026-03-17 01:20:38 +01:00
db: use context and go-mockgen for login sources (#7041)
This commit is contained in:
@@ -119,7 +119,7 @@ func Dashboard(c *context.Context) {
|
||||
c.Data["BuildTime"] = conf.BuildTime
|
||||
c.Data["BuildCommit"] = conf.BuildCommit
|
||||
|
||||
c.Data["Stats"] = db.GetStatistic()
|
||||
c.Data["Stats"] = db.GetStatistic(c.Req.Context())
|
||||
// FIXME: update periodically
|
||||
updateSystemStatus()
|
||||
c.Data["SysStatus"] = sysStatus
|
||||
|
||||
Reference in New Issue
Block a user