Skip to content

Commit

Permalink
Merge pull request #3726 from smichel17/favs-history-length
Browse files Browse the repository at this point in the history
Tweak amount of answer history considered in recently-used values
  • Loading branch information
smichel17 authored Feb 6, 2022
2 parents 3806f83 + 323de75 commit a24bd9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ abstract class AGroupedImageListQuestAnswerFragment<I, T> : AbstractQuestFormAns
}

private fun getInitialItems(): List<GroupableDisplayItem<I>> =
favs.get().mostCommonWithin(6, historyCount = 30, first = 1).padWith(topItems).toList()
favs.get().mostCommonWithin(6, historyCount = 50, first = 1).padWith(topItems).toList()

override fun onClickOk() {
val item = selectedItem!!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class AddBuildingLevelsForm : AbstractQuestFormAnswerFragment<BuildingLevelsAnsw

private val lastPickedAnswers by lazy {
favs.get()
.mostCommonWithin(target = 5, historyCount = 30, first = 1)
.mostCommonWithin(target = 5, historyCount = 15, first = 1)
.sortedWith(compareBy<BuildingLevelsAnswer> { it.levels }.thenBy { it.roofLevels })
.toList()
}
Expand Down

0 comments on commit a24bd9e

Please sign in to comment.