fix data structure

This commit is contained in:
Jacob Levine 2019-03-07 19:48:50 -06:00
parent b0782ed74e
commit b5d8851c44

View File

@ -89,7 +89,7 @@ function cnt(tn) {
function checkKeyMatch(dt,tn,key){
for(i=0; i<Object.keys(dt).length; i++){
if (Object.keys(dt)[i]=="code-"+key){
if (dt[Object.keys(dt)[i]]==tn){
if (dt[Object.keys(dt)[i]]=="team-"+tn){
return true
}
}