{"action":"created","comment":{"url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/comments/29113420","id":29113420,"diff_hunk":"@@ -5,11 +5,14 @@ def update\n     habit = current_user.dailyhabits.find(params[:id])\n     if habit.completed_at.nil?\n       score = habit.streak_count\n-      habit_count = Dailyhabit.where(user_id: current_user.id).where('date >= ?', DateTime.now.beginning_of_day..DateTime.now.end_of_day).count\n-      daily_point_value = ( 100.0 / habit_count.to_f )\n+      habit_count = Dailyhabit.where(\n+        user_id: current_user.id).where('date >= ?',","path":"app/controllers/dailyhabits_controller.rb","position":7,"original_position":7,"commit_id":"2d1926b5a20308876547f965ff2d6541d9d42ddb","original_commit_id":"2d1926b5a20308876547f965ff2d6541d9d42ddb","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-04-26T20:22:40Z","updated_at":"2015-04-26T20:22:40Z","html_url":"https://github.com/paulmthiebauth/habitsu/pull/25#discussion_r29113420","pull_request_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/comments/29113420"},"html":{"href":"https://github.com/paulmthiebauth/habitsu/pull/25#discussion_r29113420"},"pull_request":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25","id":34128111,"html_url":"https://github.com/paulmthiebauth/habitsu/pull/25","diff_url":"https://github.com/paulmthiebauth/habitsu/pull/25.diff","patch_url":"https://github.com/paulmthiebauth/habitsu/pull/25.patch","issue_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/25","number":25,"state":"open","locked":false,"title":"modified show page slightly","user":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-26T19:12:03Z","updated_at":"2015-04-26T20:22:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb315bb87f56cceae2114c12abd31a5d6a6ce0ce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25/commits","review_comments_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25/comments","review_comment_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/25/comments","statuses_url":"https://api.github.com/repos/paulmthiebauth/habitsu/statuses/2d1926b5a20308876547f965ff2d6541d9d42ddb","head":{"label":"paulmthiebauth:tasks_javascript","ref":"tasks_javascript","sha":"2d1926b5a20308876547f965ff2d6541d9d42ddb","user":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"repo":{"id":33097236,"name":"habitsu","full_name":"paulmthiebauth/habitsu","owner":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulmthiebauth/habitsu","description":"","fork":false,"url":"https://api.github.com/repos/paulmthiebauth/habitsu","forks_url":"https://api.github.com/repos/paulmthiebauth/habitsu/forks","keys_url":"https://api.github.com/repos/paulmthiebauth/habitsu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulmthiebauth/habitsu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulmthiebauth/habitsu/teams","hooks_url":"https://api.github.com/repos/paulmthiebauth/habitsu/hooks","issue_events_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/events{/number}","events_url":"https://api.github.com/repos/paulmthiebauth/habitsu/events","assignees_url":"https://api.github.com/repos/paulmthiebauth/habitsu/assignees{/user}","branches_url":"https://api.github.com/repos/paulmthiebauth/habitsu/branches{/branch}","tags_url":"https://api.github.com/repos/paulmthiebauth/habitsu/tags","blobs_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulmthiebauth/habitsu/statuses/{sha}","languages_url":"https://api.github.com/repos/paulmthiebauth/habitsu/languages","stargazers_url":"https://api.github.com/repos/paulmthiebauth/habitsu/stargazers","contributors_url":"https://api.github.com/repos/paulmthiebauth/habitsu/contributors","subscribers_url":"https://api.github.com/repos/paulmthiebauth/habitsu/subscribers","subscription_url":"https://api.github.com/repos/paulmthiebauth/habitsu/subscription","commits_url":"https://api.github.com/repos/paulmthiebauth/habitsu/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulmthiebauth/habitsu/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulmthiebauth/habitsu/contents/{+path}","compare_url":"https://api.github.com/repos/paulmthiebauth/habitsu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulmthiebauth/habitsu/merges","archive_url":"https://api.github.com/repos/paulmthiebauth/habitsu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulmthiebauth/habitsu/downloads","issues_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues{/number}","pulls_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls{/number}","milestones_url":"https://api.github.com/repos/paulmthiebauth/habitsu/milestones{/number}","notifications_url":"https://api.github.com/repos/paulmthiebauth/habitsu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulmthiebauth/habitsu/labels{/name}","releases_url":"https://api.github.com/repos/paulmthiebauth/habitsu/releases{/id}","created_at":"2015-03-30T01:36:29Z","updated_at":"2015-04-26T18:19:41Z","pushed_at":"2015-04-26T20:22:35Z","git_url":"git://github.com/paulmthiebauth/habitsu.git","ssh_url":"git@github.com:paulmthiebauth/habitsu.git","clone_url":"https://github.com/paulmthiebauth/habitsu.git","svn_url":"https://github.com/paulmthiebauth/habitsu","homepage":null,"size":4591,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"paulmthiebauth:master","ref":"master","sha":"d27583ccd587599685d00a0328c64140820090a7","user":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"repo":{"id":33097236,"name":"habitsu","full_name":"paulmthiebauth/habitsu","owner":{"login":"paulmthiebauth","id":9626789,"avatar_url":"https://avatars.githubusercontent.com/u/9626789?v=3","gravatar_id":"","url":"https://api.github.com/users/paulmthiebauth","html_url":"https://github.com/paulmthiebauth","followers_url":"https://api.github.com/users/paulmthiebauth/followers","following_url":"https://api.github.com/users/paulmthiebauth/following{/other_user}","gists_url":"https://api.github.com/users/paulmthiebauth/gists{/gist_id}","starred_url":"https://api.github.com/users/paulmthiebauth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulmthiebauth/subscriptions","organizations_url":"https://api.github.com/users/paulmthiebauth/orgs","repos_url":"https://api.github.com/users/paulmthiebauth/repos","events_url":"https://api.github.com/users/paulmthiebauth/events{/privacy}","received_events_url":"https://api.github.com/users/paulmthiebauth/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulmthiebauth/habitsu","description":"","fork":false,"url":"https://api.github.com/repos/paulmthiebauth/habitsu","forks_url":"https://api.github.com/repos/paulmthiebauth/habitsu/forks","keys_url":"https://api.github.com/repos/paulmthiebauth/habitsu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulmthiebauth/habitsu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulmthiebauth/habitsu/teams","hooks_url":"https://api.github.com/repos/paulmthiebauth/habitsu/hooks","issue_events_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/events{/number}","events_url":"https://api.github.com/repos/paulmthiebauth/habitsu/events","assignees_url":"https://api.github.com/repos/paulmthiebauth/habitsu/assignees{/user}","branches_url":"https://api.github.com/repos/paulmthiebauth/habitsu/branches{/branch}","tags_url":"https://api.github.com/repos/paulmthiebauth/habitsu/tags","blobs_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulmthiebauth/habitsu/statuses/{sha}","languages_url":"https://api.github.com/repos/paulmthiebauth/habitsu/languages","stargazers_url":"https://api.github.com/repos/paulmthiebauth/habitsu/stargazers","contributors_url":"https://api.github.com/repos/paulmthiebauth/habitsu/contributors","subscribers_url":"https://api.github.com/repos/paulmthiebauth/habitsu/subscribers","subscription_url":"https://api.github.com/repos/paulmthiebauth/habitsu/subscription","commits_url":"https://api.github.com/repos/paulmthiebauth/habitsu/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulmthiebauth/habitsu/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulmthiebauth/habitsu/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulmthiebauth/habitsu/contents/{+path}","compare_url":"https://api.github.com/repos/paulmthiebauth/habitsu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulmthiebauth/habitsu/merges","archive_url":"https://api.github.com/repos/paulmthiebauth/habitsu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulmthiebauth/habitsu/downloads","issues_url":"https://api.github.com/repos/paulmthiebauth/habitsu/issues{/number}","pulls_url":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls{/number}","milestones_url":"https://api.github.com/repos/paulmthiebauth/habitsu/milestones{/number}","notifications_url":"https://api.github.com/repos/paulmthiebauth/habitsu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulmthiebauth/habitsu/labels{/name}","releases_url":"https://api.github.com/repos/paulmthiebauth/habitsu/releases{/id}","created_at":"2015-03-30T01:36:29Z","updated_at":"2015-04-26T18:19:41Z","pushed_at":"2015-04-26T20:22:35Z","git_url":"git://github.com/paulmthiebauth/habitsu.git","ssh_url":"git@github.com:paulmthiebauth/habitsu.git","clone_url":"https://github.com/paulmthiebauth/habitsu.git","svn_url":"https://github.com/paulmthiebauth/habitsu","homepage":null,"size":4591,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25"},"html":{"href":"https://github.com/paulmthiebauth/habitsu/pull/25"},"issue":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/25"},"comments":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/paulmthiebauth/habitsu/statuses/2d1926b5a20308876547f965ff2d6541d9d42ddb"}}}}