mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 18:09:08 +00:00
fix data structure
This commit is contained in:
parent
b0782ed74e
commit
b5d8851c44
@ -89,7 +89,7 @@ function cnt(tn) {
|
|||||||
function checkKeyMatch(dt,tn,key){
|
function checkKeyMatch(dt,tn,key){
|
||||||
for(i=0; i<Object.keys(dt).length; i++){
|
for(i=0; i<Object.keys(dt).length; i++){
|
||||||
if (Object.keys(dt)[i]=="code-"+key){
|
if (Object.keys(dt)[i]=="code-"+key){
|
||||||
if (dt[Object.keys(dt)[i]]==tn){
|
if (dt[Object.keys(dt)[i]]=="team-"+tn){
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user