cherry-picked puzzles are now unrated

it was abused for boosting, which is only an issue
because it prevents the hardest puzzles from reaching
real high ratings
pull/8099/head
Thibault Duplessis 2021-02-05 09:02:38 +01:00
parent 060c75e64b
commit ee87d1a264
2 changed files with 2 additions and 2 deletions

View File

@ -235,7 +235,7 @@ final class Puzzle(
}
case None if themeOrId.size == Puz.idSize =>
OptionFuResult(env.puzzle.api.puzzle find Puz.Id(themeOrId)) { puz =>
ctx.me.ifTrue(getBool("casual")) foreach { env.puzzle.api.casual.set(_, puz.id) }
ctx.me foreach { env.puzzle.api.casual.set(_, puz.id) }
renderShow(puz, PuzzleTheme.mix)
}
case None =>

View File

@ -86,7 +86,7 @@ const renderHistory = (ctrl: StormCtrl): VNode =>
h('div.storm--end__history__round', [
h('a.storm--end__history__round__puzzle.mini-board.cg-wrap.is2d', {
attrs: {
href: `/training/${round.puzzle.id}?casual=1`,
href: `/training/${round.puzzle.id}`,
target: '_blank'
},
hook: onInsert(e => {