Skip to content
This repository was archived by the owner on Aug 2, 2018. It is now read-only.

Commit 1ab3eb8

Browse files
committed
题库更新最新答案
1 parent 294a926 commit 1ab3eb8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

db.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ func MergeQuestions(fs ...string) {
111111
//三方包的时间
112112
q := DecodeQuestionCols(v)
113113
//数据库中的时间
114-
q.Update = max(FetchQuestionTime(string(k)), q.Update)
115-
b.Put(k, q.GetData())
114+
if q.Update > FetchQuestionTime(string(k)) {
115+
b.Put(k, q.GetData())
116+
}
116117
return nil
117118
})
118119
}

0 commit comments

Comments
 (0)