{"action":"closed","issue":{"url":"https://api.github.com/repos/alexinman/clashtracker/issues/54","repository_url":"https://api.github.com/repos/alexinman/clashtracker","labels_url":"https://api.github.com/repos/alexinman/clashtracker/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/alexinman/clashtracker/issues/54/comments","events_url":"https://api.github.com/repos/alexinman/clashtracker/issues/54/events","html_url":"https://github.com/alexinman/clashtracker/issues/54","id":167170975,"number":54,"title":"Shouldn't update unchanged war stat values","user":{"login":"alexinman","id":6303087,"avatar_url":"https://avatars.githubusercontent.com/u/6303087?v=3","gravatar_id":"","url":"https://api.github.com/users/alexinman","html_url":"https://github.com/alexinman","followers_url":"https://api.github.com/users/alexinman/followers","following_url":"https://api.github.com/users/alexinman/following{/other_user}","gists_url":"https://api.github.com/users/alexinman/gists{/gist_id}","starred_url":"https://api.github.com/users/alexinman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexinman/subscriptions","organizations_url":"https://api.github.com/users/alexinman/orgs","repos_url":"https://api.github.com/users/alexinman/repos","events_url":"https://api.github.com/users/alexinman/events{/privacy}","received_events_url":"https://api.github.com/users/alexinman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/alexinman/clashtracker/labels/improvement","name":"improvement","color":"5319e7"},{"url":"https://api.github.com/repos/alexinman/clashtracker/labels/priority:%20medium","name":"priority: medium","color":"d93f0b"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-23T06:34:26Z","updated_at":"2016-08-22T23:08:57Z","closed_at":"2016-08-22T23:08:57Z","body":"When recording the stats for a war, we're still updating unchanged values, which is a waste of a DB call.\r\nThis should be fixed in both the function here:\r\nhttps://github.com/alexinman/clashtracker/blob/develop/classes/war.php#L860\r\nAnd the script here:\r\nhttps://github.com/alexinman/clashtracker/blob/develop/scripts/updatePlayerWarStats.php"}}
{"actor":{"display_login":"alexinman"}}