{"action":"created","comment":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/180359378","pull_request_review_id":110764630,"id":180359378,"diff_hunk":"@@ -0,0 +1,21 @@\n+from loop_ivr.models import SmsStatus\n+from datetime import datetime\n+from dg.settings import TEXTLOCAL_API_KEY \n+from django.core.management.base import BaseCommand\n+from loop_ivr.helper_function import get_textlocal_sms_status\n+import json\n+\n+class Command(BaseCommand):\n+\n+    def handle(self, *args, **options):\n+        # today = datetime(2018, 03, 21).date()\n+        today = datetime.now().date()\n+        sms_status_obj = SmsStatus.objects.filter(api_call_initiation_time__contains=today)\n+        for smsobj in sms_status_obj:\n+            resp = get_textlocal_sms_status(TEXTLOCAL_API_KEY, smsobj.textlocal_sms_id)\n+            resp = json.loads(resp)\n+            ","path":"loop_ivr/management/commands/textlocal_sms_status.py","position":17,"original_position":17,"commit_id":"e6f9059c8d15bb355c81df14e9a892bd35e78ed6","original_commit_id":"e6f9059c8d15bb355c81df14e9a892bd35e78ed6","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Trailing whitespace](https://app.codacy.com/app/alodha21051992/dg/pullRequest?prid=1507876)","created_at":"2018-04-10T09:51:14Z","updated_at":"2018-04-10T09:51:14Z","html_url":"https://github.com/digitalgreenorg/dg/pull/916#discussion_r180359378","pull_request_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/180359378"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/916#discussion_r180359378"},"pull_request":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916"}}},"pull_request":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916","id":179608801,"html_url":"https://github.com/digitalgreenorg/dg/pull/916","diff_url":"https://github.com/digitalgreenorg/dg/pull/916.diff","patch_url":"https://github.com/digitalgreenorg/dg/pull/916.patch","issue_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/916","number":916,"state":"open","locked":false,"title":"Loop mi product mailer","user":{"login":"sujit22993","id":8048341,"avatar_url":"https://avatars0.githubusercontent.com/u/8048341?v=4","gravatar_id":"","url":"https://api.github.com/users/sujit22993","html_url":"https://github.com/sujit22993","followers_url":"https://api.github.com/users/sujit22993/followers","following_url":"https://api.github.com/users/sujit22993/following{/other_user}","gists_url":"https://api.github.com/users/sujit22993/gists{/gist_id}","starred_url":"https://api.github.com/users/sujit22993/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sujit22993/subscriptions","organizations_url":"https://api.github.com/users/sujit22993/orgs","repos_url":"https://api.github.com/users/sujit22993/repos","events_url":"https://api.github.com/users/sujit22993/events{/privacy}","received_events_url":"https://api.github.com/users/sujit22993/received_events","type":"User","site_admin":false},"body":"Mailer for Loop Product team and along with sms status of texlocal","created_at":"2018-04-05T08:46:49Z","updated_at":"2018-04-10T09:51:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"038293c9392d72233b06641f7e05fa3c147912cb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916/commits","review_comments_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916/comments","review_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/916/comments","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/e6f9059c8d15bb355c81df14e9a892bd35e78ed6","head":{"label":"digitalgreenorg:loop_mi_product_mailer","ref":"loop_mi_product_mailer","sha":"e6f9059c8d15bb355c81df14e9a892bd35e78ed6","user":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO, Analytics, Website, LOOP, Training, IVR, Helpline","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2018-04-09T07:39:26Z","pushed_at":"2018-04-10T09:45:21Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":635713,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":7,"open_issues":41,"watchers":11,"default_branch":"master"}},"base":{"label":"digitalgreenorg:master","ref":"master","sha":"8b221663a9bb369d7529d76f477699fa9c8432c3","user":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"repo":{"id":2742622,"name":"dg","full_name":"digitalgreenorg/dg","owner":{"login":"digitalgreenorg","id":1179852,"avatar_url":"https://avatars3.githubusercontent.com/u/1179852?v=4","gravatar_id":"","url":"https://api.github.com/users/digitalgreenorg","html_url":"https://github.com/digitalgreenorg","followers_url":"https://api.github.com/users/digitalgreenorg/followers","following_url":"https://api.github.com/users/digitalgreenorg/following{/other_user}","gists_url":"https://api.github.com/users/digitalgreenorg/gists{/gist_id}","starred_url":"https://api.github.com/users/digitalgreenorg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/digitalgreenorg/subscriptions","organizations_url":"https://api.github.com/users/digitalgreenorg/orgs","repos_url":"https://api.github.com/users/digitalgreenorg/repos","events_url":"https://api.github.com/users/digitalgreenorg/events{/privacy}","received_events_url":"https://api.github.com/users/digitalgreenorg/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/digitalgreenorg/dg","description":"COCO, Analytics, Website, LOOP, Training, IVR, Helpline","fork":false,"url":"https://api.github.com/repos/digitalgreenorg/dg","forks_url":"https://api.github.com/repos/digitalgreenorg/dg/forks","keys_url":"https://api.github.com/repos/digitalgreenorg/dg/keys{/key_id}","collaborators_url":"https://api.github.com/repos/digitalgreenorg/dg/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/digitalgreenorg/dg/teams","hooks_url":"https://api.github.com/repos/digitalgreenorg/dg/hooks","issue_events_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/events{/number}","events_url":"https://api.github.com/repos/digitalgreenorg/dg/events","assignees_url":"https://api.github.com/repos/digitalgreenorg/dg/assignees{/user}","branches_url":"https://api.github.com/repos/digitalgreenorg/dg/branches{/branch}","tags_url":"https://api.github.com/repos/digitalgreenorg/dg/tags","blobs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/digitalgreenorg/dg/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/digitalgreenorg/dg/git/refs{/sha}","trees_url":"https://api.github.com/repos/digitalgreenorg/dg/git/trees{/sha}","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/{sha}","languages_url":"https://api.github.com/repos/digitalgreenorg/dg/languages","stargazers_url":"https://api.github.com/repos/digitalgreenorg/dg/stargazers","contributors_url":"https://api.github.com/repos/digitalgreenorg/dg/contributors","subscribers_url":"https://api.github.com/repos/digitalgreenorg/dg/subscribers","subscription_url":"https://api.github.com/repos/digitalgreenorg/dg/subscription","commits_url":"https://api.github.com/repos/digitalgreenorg/dg/commits{/sha}","git_commits_url":"https://api.github.com/repos/digitalgreenorg/dg/git/commits{/sha}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/comments{/number}","issue_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/comments{/number}","contents_url":"https://api.github.com/repos/digitalgreenorg/dg/contents/{+path}","compare_url":"https://api.github.com/repos/digitalgreenorg/dg/compare/{base}...{head}","merges_url":"https://api.github.com/repos/digitalgreenorg/dg/merges","archive_url":"https://api.github.com/repos/digitalgreenorg/dg/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/digitalgreenorg/dg/downloads","issues_url":"https://api.github.com/repos/digitalgreenorg/dg/issues{/number}","pulls_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls{/number}","milestones_url":"https://api.github.com/repos/digitalgreenorg/dg/milestones{/number}","notifications_url":"https://api.github.com/repos/digitalgreenorg/dg/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/digitalgreenorg/dg/labels{/name}","releases_url":"https://api.github.com/repos/digitalgreenorg/dg/releases{/id}","deployments_url":"https://api.github.com/repos/digitalgreenorg/dg/deployments","created_at":"2011-11-09T16:04:45Z","updated_at":"2018-04-09T07:39:26Z","pushed_at":"2018-04-10T09:45:21Z","git_url":"git://github.com/digitalgreenorg/dg.git","ssh_url":"git@github.com:digitalgreenorg/dg.git","clone_url":"https://github.com/digitalgreenorg/dg.git","svn_url":"https://github.com/digitalgreenorg/dg","homepage":"","size":635713,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":41,"license":null,"forks":7,"open_issues":41,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/916"},"issue":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/916"},"comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/916/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/916/commits"},"statuses":{"href":"https://api.github.com/repos/digitalgreenorg/dg/statuses/e6f9059c8d15bb355c81df14e9a892bd35e78ed6"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}