{"action":"created","issue":{"url":"https://api.github.com/repos/systers/malaria-app-android/issues/12","labels_url":"https://api.github.com/repos/systers/malaria-app-android/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/systers/malaria-app-android/issues/12/comments","events_url":"https://api.github.com/repos/systers/malaria-app-android/issues/12/events","html_url":"https://github.com/systers/malaria-app-android/pull/12","id":111957267,"number":12,"title":"Fixed bug in the medicine last taken function","user":{"login":"yatna","id":8321130,"avatar_url":"https://avatars.githubusercontent.com/u/8321130?v=3","gravatar_id":"","url":"https://api.github.com/users/yatna","html_url":"https://github.com/yatna","followers_url":"https://api.github.com/users/yatna/followers","following_url":"https://api.github.com/users/yatna/following{/other_user}","gists_url":"https://api.github.com/users/yatna/gists{/gist_id}","starred_url":"https://api.github.com/users/yatna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yatna/subscriptions","organizations_url":"https://api.github.com/users/yatna/orgs","repos_url":"https://api.github.com/users/yatna/repos","events_url":"https://api.github.com/users/yatna/events{/privacy}","received_events_url":"https://api.github.com/users/yatna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-17T11:01:58Z","updated_at":"2015-10-19T18:31:14Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/systers/malaria-app-android/pulls/12","html_url":"https://github.com/systers/malaria-app-android/pull/12","diff_url":"https://github.com/systers/malaria-app-android/pull/12.diff","patch_url":"https://github.com/systers/malaria-app-android/pull/12.patch"},"body":"The medicine last taken gave the wrong last date when the user goes to the latest date and modifies it via calender. It still gave the earlier date as the last taken date which was incorrect. \r\nI fixed this bug by creating a function getLastTaken() which scans through the entire sorted database and picks the latest date where status is \"yes\".Thus it gives correct value even if the date if modified via calender."},"comment":{"url":"https://api.github.com/repos/systers/malaria-app-android/issues/comments/149306126","html_url":"https://github.com/systers/malaria-app-android/pull/12#issuecomment-149306126","issue_url":"https://api.github.com/repos/systers/malaria-app-android/issues/12","id":149306126,"user":{"login":"ankita-kalra","id":2662871,"avatar_url":"https://avatars.githubusercontent.com/u/2662871?v=3","gravatar_id":"","url":"https://api.github.com/users/ankita-kalra","html_url":"https://github.com/ankita-kalra","followers_url":"https://api.github.com/users/ankita-kalra/followers","following_url":"https://api.github.com/users/ankita-kalra/following{/other_user}","gists_url":"https://api.github.com/users/ankita-kalra/gists{/gist_id}","starred_url":"https://api.github.com/users/ankita-kalra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ankita-kalra/subscriptions","organizations_url":"https://api.github.com/users/ankita-kalra/orgs","repos_url":"https://api.github.com/users/ankita-kalra/repos","events_url":"https://api.github.com/users/ankita-kalra/events{/privacy}","received_events_url":"https://api.github.com/users/ankita-kalra/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T18:31:14Z","updated_at":"2015-10-19T18:31:14Z","body":"try to do it in efficient manner. i guess its the matter of a shared preference not being updated somewhere. I will have look at it."}}