add get player attendance script and fix duplicate team bug