forked from Gitlink/gitea-1120-rc1
fix: include timestamp critical value
This commit is contained in:
parent
b8fd0c3f98
commit
ff366f6c6a
|
@ -82,8 +82,8 @@ func GetUserHeatMapDataByUserWithTimeStamp(user *User, opts TimestampOptions) ([
|
|||
sess := x.Select(groupBy+" AS timestamp, count(user_id) as contributions").
|
||||
Table("action").
|
||||
Where("user_id = ?", user.ID).
|
||||
And("created_unix > ?", opts.Start).
|
||||
And("created_unix < ?", opts.End)
|
||||
And(groupBy+" >= ?", opts.Start).
|
||||
And(groupBy+" <= ?", opts.End)
|
||||
|
||||
if user.Type == UserTypeIndividual {
|
||||
sess = sess.And("act_user_id = ?", user.ID)
|
||||
|
|
Loading…
Reference in New Issue