constpoints=(awaitsqlite.get(`SELECT sum(Points) FROM maps JOIN (SELECT DISTINCT Map FROM race WHERE Name = "${player.name}") AS r ON maps.Map = r.Map`))['sum(Points)']
player.points=points
Player.updateOne({name:player.name},{rankPoints:points},()=>log(`Task ${processedPlayers}/${playerAmount} >> Player «${player.name}» has ${points} points!`))