From ecb9f8814d6e01f85213e0dff3c820dcdc0c2908 Mon Sep 17 00:00:00 2001 From: zouap Date: Fri, 8 Oct 2021 16:57:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- models/user_business_analysis.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/models/user_business_analysis.go b/models/user_business_analysis.go index 67c15924c..32848b8be 100644 --- a/models/user_business_analysis.go +++ b/models/user_business_analysis.go @@ -166,7 +166,9 @@ func CountData(wikiCountMap map[string]int) { dateRecord.CommitModelCount = 0 - sess.Insert(&dateRecord) + statictisSess := xStatistic.NewSession() + defer statictisSess.Close() + statictisSess.Insert(&dateRecord) } }