fix study multiboard mongodb function
parent
37e9e4445a
commit
848e1686ab
|
@ -54,7 +54,7 @@ final class StudyMultiBoard(
|
|||
runCommand = runCommand,
|
||||
command = $doc(
|
||||
"map" -> """var node = this.root, child, tagPrefixes = ['White','Black','Result'], result = {name:this.name,orientation:this.setup.orientation,tags:this.tags.filter(t => tagPrefixes.find(p => t.startsWith(p)))};
|
||||
if (result.tags.lengthIs > 1) { while(child = node.n[0]) { node = child }; }
|
||||
if (result.tags.length > 1) { while(child = node.n[0]) { node = child }; }
|
||||
result.fen = node.f;
|
||||
result.uci = node.u;
|
||||
emit(this._id, result)""",
|
||||
|
|
Loading…
Reference in New Issue