Skip to content

Commit

Permalink
hacky fix for Kaltara displaying incorrect party/color on the map and…
Browse files Browse the repository at this point in the history
… empty in the listing
  • Loading branch information
tmaybe committed Jun 27, 2014
1 parent 9cf6bb1 commit 997889a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions map/js/PetaCaleg.js
Original file line number Diff line number Diff line change
Expand Up @@ -704,6 +704,16 @@
}
return false;
});
// :TODO: temporary hack to associate Kaltim results with Kaltara
var kaltimRank = matching.filter(function(d) {
return (d.id == 64);
})[0].partaiRank;
for (var check in matching) {
if (matching[check].id == 65) {
matching[check].partaiRank = kaltimRank;
break;
}
}
}

return callback(null, matching);
Expand Down

0 comments on commit 997889a

Please sign in to comment.