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

Commit

Permalink
题库更新最新答案
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li committed Jan 13, 2018
1 parent 294a926 commit 1ab3eb8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions db.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@ func MergeQuestions(fs ...string) {
//三方包的时间
q := DecodeQuestionCols(v)
//数据库中的时间
q.Update = max(FetchQuestionTime(string(k)), q.Update)
b.Put(k, q.GetData())
if q.Update > FetchQuestionTime(string(k)) {
b.Put(k, q.GetData())
}
return nil
})
}
Expand Down

0 comments on commit 1ab3eb8

Please sign in to comment.