{"action":"created","comment":{"url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/comments/186662335","pull_request_review_id":118282516,"id":186662335,"diff_hunk":"@@ -7,7 +7,7 @@ class NokiaHealthMember(models.Model):\n     Store OAuth2 data for Open Humans member.\n     A User account is created for this Open Humans member.\n     \"\"\"\n-    user = models.OneToOneField(OpenHumansMember, on_delete=models.CASCADE)\n+    user = models.OneToOneField(OpenHumansMember, related_name=\"nokia_member\", on_delete=models.CASCADE)","path":"main/models.py","position":5,"original_position":5,"commit_id":"cc309e03bf631419110e51c76cd31c388ee612ca","original_commit_id":"cc309e03bf631419110e51c76cd31c388ee612ca","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"line too long (104 > 79 characters)","created_at":"2018-05-08T09:08:37Z","updated_at":"2018-05-08T09:08:39Z","html_url":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24#discussion_r186662335","pull_request_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/comments/186662335"},"html":{"href":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24#discussion_r186662335"},"pull_request":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24"}}},"pull_request":{"url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24","id":186570900,"html_url":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24","diff_url":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24.diff","patch_url":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24.patch","issue_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/24","number":24,"state":"open","locked":false,"title":"Import existing users","user":{"login":"Treblesteph","id":4573291,"avatar_url":"https://avatars2.githubusercontent.com/u/4573291?v=4","gravatar_id":"","url":"https://api.github.com/users/Treblesteph","html_url":"https://github.com/Treblesteph","followers_url":"https://api.github.com/users/Treblesteph/followers","following_url":"https://api.github.com/users/Treblesteph/following{/other_user}","gists_url":"https://api.github.com/users/Treblesteph/gists{/gist_id}","starred_url":"https://api.github.com/users/Treblesteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treblesteph/subscriptions","organizations_url":"https://api.github.com/users/Treblesteph/orgs","repos_url":"https://api.github.com/users/Treblesteph/repos","events_url":"https://api.github.com/users/Treblesteph/events{/privacy}","received_events_url":"https://api.github.com/users/Treblesteph/received_events","type":"User","site_admin":false},"body":"@madprime I have made the import function here. I ran it with dummy data and checked the database, and it all looks fine.","created_at":"2018-05-08T09:08:26Z","updated_at":"2018-05-08T09:08:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99d581e31e4fa937c1999efa602bc030f48fc91d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24/commits","review_comments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24/comments","review_comment_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/24/comments","statuses_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/statuses/cc309e03bf631419110e51c76cd31c388ee612ca","head":{"label":"Treblesteph:import-tokens","ref":"import-tokens","sha":"cc309e03bf631419110e51c76cd31c388ee612ca","user":{"login":"Treblesteph","id":4573291,"avatar_url":"https://avatars2.githubusercontent.com/u/4573291?v=4","gravatar_id":"","url":"https://api.github.com/users/Treblesteph","html_url":"https://github.com/Treblesteph","followers_url":"https://api.github.com/users/Treblesteph/followers","following_url":"https://api.github.com/users/Treblesteph/following{/other_user}","gists_url":"https://api.github.com/users/Treblesteph/gists{/gist_id}","starred_url":"https://api.github.com/users/Treblesteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treblesteph/subscriptions","organizations_url":"https://api.github.com/users/Treblesteph/orgs","repos_url":"https://api.github.com/users/Treblesteph/repos","events_url":"https://api.github.com/users/Treblesteph/events{/privacy}","received_events_url":"https://api.github.com/users/Treblesteph/received_events","type":"User","site_admin":false},"repo":{"id":124369540,"name":"oh-nokiahealth-integration","full_name":"Treblesteph/oh-nokiahealth-integration","owner":{"login":"Treblesteph","id":4573291,"avatar_url":"https://avatars2.githubusercontent.com/u/4573291?v=4","gravatar_id":"","url":"https://api.github.com/users/Treblesteph","html_url":"https://github.com/Treblesteph","followers_url":"https://api.github.com/users/Treblesteph/followers","following_url":"https://api.github.com/users/Treblesteph/following{/other_user}","gists_url":"https://api.github.com/users/Treblesteph/gists{/gist_id}","starred_url":"https://api.github.com/users/Treblesteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treblesteph/subscriptions","organizations_url":"https://api.github.com/users/Treblesteph/orgs","repos_url":"https://api.github.com/users/Treblesteph/repos","events_url":"https://api.github.com/users/Treblesteph/events{/privacy}","received_events_url":"https://api.github.com/users/Treblesteph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Treblesteph/oh-nokiahealth-integration","description":"Django/Celery app for importing Nokia Health (formerly Withings) data to Open Humans.","fork":false,"url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration","forks_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/forks","keys_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/teams","hooks_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/hooks","issue_events_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/events{/number}","events_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/events","assignees_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/assignees{/user}","branches_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/branches{/branch}","tags_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/tags","blobs_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/languages","stargazers_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/stargazers","contributors_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/contributors","subscribers_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/subscribers","subscription_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/subscription","commits_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/contents/{+path}","compare_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/merges","archive_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/downloads","issues_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues{/number}","pulls_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/labels{/name}","releases_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/releases{/id}","deployments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/deployments","created_at":"2018-03-08T09:36:04Z","updated_at":"2018-05-01T20:15:23Z","pushed_at":"2018-05-08T09:08:26Z","git_url":"git://github.com/Treblesteph/oh-nokiahealth-integration.git","ssh_url":"git@github.com:Treblesteph/oh-nokiahealth-integration.git","clone_url":"https://github.com/Treblesteph/oh-nokiahealth-integration.git","svn_url":"https://github.com/Treblesteph/oh-nokiahealth-integration","homepage":null,"size":768,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"Treblesteph:master","ref":"master","sha":"6e106f600c67830aae5906fb4e0b0bfaa04fcb71","user":{"login":"Treblesteph","id":4573291,"avatar_url":"https://avatars2.githubusercontent.com/u/4573291?v=4","gravatar_id":"","url":"https://api.github.com/users/Treblesteph","html_url":"https://github.com/Treblesteph","followers_url":"https://api.github.com/users/Treblesteph/followers","following_url":"https://api.github.com/users/Treblesteph/following{/other_user}","gists_url":"https://api.github.com/users/Treblesteph/gists{/gist_id}","starred_url":"https://api.github.com/users/Treblesteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treblesteph/subscriptions","organizations_url":"https://api.github.com/users/Treblesteph/orgs","repos_url":"https://api.github.com/users/Treblesteph/repos","events_url":"https://api.github.com/users/Treblesteph/events{/privacy}","received_events_url":"https://api.github.com/users/Treblesteph/received_events","type":"User","site_admin":false},"repo":{"id":124369540,"name":"oh-nokiahealth-integration","full_name":"Treblesteph/oh-nokiahealth-integration","owner":{"login":"Treblesteph","id":4573291,"avatar_url":"https://avatars2.githubusercontent.com/u/4573291?v=4","gravatar_id":"","url":"https://api.github.com/users/Treblesteph","html_url":"https://github.com/Treblesteph","followers_url":"https://api.github.com/users/Treblesteph/followers","following_url":"https://api.github.com/users/Treblesteph/following{/other_user}","gists_url":"https://api.github.com/users/Treblesteph/gists{/gist_id}","starred_url":"https://api.github.com/users/Treblesteph/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Treblesteph/subscriptions","organizations_url":"https://api.github.com/users/Treblesteph/orgs","repos_url":"https://api.github.com/users/Treblesteph/repos","events_url":"https://api.github.com/users/Treblesteph/events{/privacy}","received_events_url":"https://api.github.com/users/Treblesteph/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Treblesteph/oh-nokiahealth-integration","description":"Django/Celery app for importing Nokia Health (formerly Withings) data to Open Humans.","fork":false,"url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration","forks_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/forks","keys_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/teams","hooks_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/hooks","issue_events_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/events{/number}","events_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/events","assignees_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/assignees{/user}","branches_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/branches{/branch}","tags_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/tags","blobs_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/refs{/sha}","trees_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/statuses/{sha}","languages_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/languages","stargazers_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/stargazers","contributors_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/contributors","subscribers_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/subscribers","subscription_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/subscription","commits_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/commits{/sha}","git_commits_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/git/commits{/sha}","comments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/comments{/number}","issue_comment_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/comments{/number}","contents_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/contents/{+path}","compare_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/merges","archive_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/downloads","issues_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues{/number}","pulls_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls{/number}","milestones_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/milestones{/number}","notifications_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/labels{/name}","releases_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/releases{/id}","deployments_url":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/deployments","created_at":"2018-03-08T09:36:04Z","updated_at":"2018-05-01T20:15:23Z","pushed_at":"2018-05-08T09:08:26Z","git_url":"git://github.com/Treblesteph/oh-nokiahealth-integration.git","ssh_url":"git@github.com:Treblesteph/oh-nokiahealth-integration.git","clone_url":"https://github.com/Treblesteph/oh-nokiahealth-integration.git","svn_url":"https://github.com/Treblesteph/oh-nokiahealth-integration","homepage":null,"size":768,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":null,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24"},"html":{"href":"https://github.com/Treblesteph/oh-nokiahealth-integration/pull/24"},"issue":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/24"},"comments":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/Treblesteph/oh-nokiahealth-integration/statuses/cc309e03bf631419110e51c76cd31c388ee612ca"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}