summaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorsiddweiker <siddweiker@users.noreply.github.com>2021-06-25 12:59:25 -0400
committerGitHub <noreply@github.com>2021-06-25 12:59:25 -0400
commitf573e93ed429d1d1dd0a7be8a3b0042f0817cc00 (patch)
treed71db3d42e18da8dd0910ac1e2db04ab841e0e9b /integrations
parent3ef23d5411732b4b714d6fc9739bc5dac75aadd4 (diff)
downloadgitea-f573e93ed429d1d1dd0a7be8a3b0042f0817cc00.tar.gz
gitea-f573e93ed429d1d1dd0a7be8a3b0042f0817cc00.zip
Fix heatmap activity (#15252)
* Group heatmap actions by 15 minute intervals Signed-off-by: Sidd Weiker <siddweiker@gmail.com> * Add multi-contribution test for user heatmap Signed-off-by: Sidd Weiker <siddweiker@gmail.com> * Add timezone aware summation for activity heatmap Signed-off-by: Sidd Weiker <siddweiker@gmail.com> * Fix api user heatmap test Signed-off-by: Sidd Weiker <siddweiker@gmail.com> * Update variable declaration style Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'integrations')
-rw-r--r--integrations/api_user_heatmap_test.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/integrations/api_user_heatmap_test.go b/integrations/api_user_heatmap_test.go
index 105d39e9ae..a0f0552a17 100644
--- a/integrations/api_user_heatmap_test.go
+++ b/integrations/api_user_heatmap_test.go
@@ -26,7 +26,7 @@ func TestUserHeatmap(t *testing.T) {
var heatmap []*models.UserHeatmapData
DecodeJSON(t, resp, &heatmap)
var dummyheatmap []*models.UserHeatmapData
- dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1603152000, Contributions: 1})
+ dummyheatmap = append(dummyheatmap, &models.UserHeatmapData{Timestamp: 1603227600, Contributions: 1})
assert.Equal(t, dummyheatmap, heatmap)
}