{"action":"closed","issue":{"url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/47","repository_url":"https://api.github.com/repos/blreams/collegefootballpick10","labels_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/47/labels{/name}","comments_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/47/comments","events_url":"https://api.github.com/repos/blreams/collegefootballpick10/issues/47/events","html_url":"https://github.com/blreams/collegefootballpick10/issues/47","id":101194051,"number":47,"title":"How to handle picks when player defaults","user":{"login":"jbholden","id":1541768,"avatar_url":"https://avatars.githubusercontent.com/u/1541768?v=3","gravatar_id":"","url":"https://api.github.com/users/jbholden","html_url":"https://github.com/jbholden","followers_url":"https://api.github.com/users/jbholden/followers","following_url":"https://api.github.com/users/jbholden/following{/other_user}","gists_url":"https://api.github.com/users/jbholden/gists{/gist_id}","starred_url":"https://api.github.com/users/jbholden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbholden/subscriptions","organizations_url":"https://api.github.com/users/jbholden/orgs","repos_url":"https://api.github.com/users/jbholden/repos","events_url":"https://api.github.com/users/jbholden/events{/privacy}","received_events_url":"https://api.github.com/users/jbholden/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/blreams/collegefootballpick10/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2015-08-15T18:02:50Z","updated_at":"2016-09-29T23:55:41Z","closed_at":"2016-09-29T23:55:41Z","body":"When a player defaults in a week, I believe the code requires that there still be picks for the player but the winner field will be equal to 0 instead of 1 or 2 (for team1/team2).  I'm not exactly sure that this is correct, but I know that this method works.\r\n\r\nThe question then is when to create the picks for a defaulting player.  The following is possible methods to do this.\r\n* method 1:  When a new week is created, create picks for every player with winner=0\r\n* method 2:  After the pick deadline, create picks for every player that defaults\r\n\r\nThere is a slight complication with method 1 when the pool initially starts for a year.  I assume that users can sign up for the year at the same time that already signed up users are making picks.  Therefore, if a player signs up and games are available, then the picks with defaults for that player need to be created at that time.  This might also be an issue if players are allowed to sign up in week 2 or later.\r\n\r\n"}}
{"actor":{"display_login":"blreams"}}