not all imported games are analysable
This commit is contained in:
parent
02084bea01
commit
efedc028f5
|
@ -37,7 +37,7 @@ object Importer extends LilaController with BaseGame {
|
|||
Ok(html.game.importGame(listMenu, failure))
|
||||
},
|
||||
data => env.importer(data, ctx.userId, ctx.ip) map { game =>
|
||||
Analyse.addCallbacks(game.id) {
|
||||
if (game.analysable) Analyse.addCallbacks(game.id) {
|
||||
Env.analyse.analyser.getOrGenerate(game.id, ctx.userId | "lichess", concurrent = true, auto = false)
|
||||
}
|
||||
Redirect(routes.Round.watcher(game.id, "white"))
|
||||
|
|
Loading…
Reference in a new issue