{"action":"created","comment":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/173717718","pull_request_review_id":102939283,"id":173717718,"diff_hunk":"@@ -0,0 +1,147 @@\n+import urllib2\n+import unicodecsv as csv\n+import xml.etree.ElementTree as ET\n+from django.core.management.base import BaseCommand\n+from django.contrib.auth.models import User\n+from geographies.models import *\n+from people.models import *\n+from programs.models import *\n+import jslps_data_integration as jslps\n+\n+class Command(BaseCommand):\n+\tdef handle(self, *args, **options):\n+\t\t#read xml from url\n+\t\turl = urllib2.urlopen('http://webservicesri.swalekha.in/Service.asmx/GetExportGroupMemberDataHnNNew1?pUsername=admin&pPassword=JSLPSSRI')","path":"activities/management/commands/jslps_hnn_person_new1.py","position":14,"original_position":14,"commit_id":"1f2e7bcbaec5989784930f6a1d5f9d29f521bc23","original_commit_id":"1f2e7bcbaec5989784930f6a1d5f9d29f521bc23","user":{"login":"Abhishek-lodha","id":7737588,"avatar_url":"https://avatars2.githubusercontent.com/u/7737588?v=4","gravatar_id":"","url":"https://api.github.com/users/Abhishek-lodha","html_url":"https://github.com/Abhishek-lodha","followers_url":"https://api.github.com/users/Abhishek-lodha/followers","following_url":"https://api.github.com/users/Abhishek-lodha/following{/other_user}","gists_url":"https://api.github.com/users/Abhishek-lodha/gists{/gist_id}","starred_url":"https://api.github.com/users/Abhishek-lodha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Abhishek-lodha/subscriptions","organizations_url":"https://api.github.com/users/Abhishek-lodha/orgs","repos_url":"https://api.github.com/users/Abhishek-lodha/repos","events_url":"https://api.github.com/users/Abhishek-lodha/events{/privacy}","received_events_url":"https://api.github.com/users/Abhishek-lodha/received_events","type":"User","site_admin":false},"body":"We can use string manipulation to change the url to remove all extraneous files. Or we can send the url as argument to call_command method","created_at":"2018-03-12T08:21:04Z","updated_at":"2018-03-12T08:33:01Z","html_url":"https://github.com/digitalgreenorg/dg/pull/907#discussion_r173717718","pull_request_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/173717718"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/907#discussion_r173717718"},"pull_request":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907"}}},"pull_request":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907","id":173912144,"html_url":"https://github.com/digitalgreenorg/dg/pull/907","diff_url":"https://github.com/digitalgreenorg/dg/pull/907.diff","patch_url":"https://github.com/digitalgreenorg/dg/pull/907.patch","issue_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/907","number":907,"state":"open","locked":false,"title":"Jslps health","user":{"login":"djangobotpython","id":20275986,"avatar_url":"https://avatars1.githubusercontent.com/u/20275986?v=4","gravatar_id":"","url":"https://api.github.com/users/djangobotpython","html_url":"https://github.com/djangobotpython","followers_url":"https://api.github.com/users/djangobotpython/followers","following_url":"https://api.github.com/users/djangobotpython/following{/other_user}","gists_url":"https://api.github.com/users/djangobotpython/gists{/gist_id}","starred_url":"https://api.github.com/users/djangobotpython/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djangobotpython/subscriptions","organizations_url":"https://api.github.com/users/djangobotpython/orgs","repos_url":"https://api.github.com/users/djangobotpython/repos","events_url":"https://api.github.com/users/djangobotpython/events{/privacy}","received_events_url":"https://api.github.com/users/djangobotpython/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-03-09T03:44:50Z","updated_at":"2018-03-12T08:33:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d45ec992ec1e5b4a23631f7ce0af4e315489bb5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907/commits","review_comments_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907/comments","review_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/907/comments","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/1f2e7bcbaec5989784930f6a1d5f9d29f521bc23","head":{"label":"digitalgreenorg:jslps-health","ref":"jslps-health","sha":"1f2e7bcbaec5989784930f6a1d5f9d29f521bc23","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","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":"2017-10-07T10:33:04Z","pushed_at":"2018-03-12T06:30:31Z","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":610199,"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":44,"license":null,"forks":7,"open_issues":44,"watchers":11,"default_branch":"master"}},"base":{"label":"digitalgreenorg:master","ref":"master","sha":"e8b444e8b657a2f1d896a279ed42d6fe2a9c861a","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","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":"2017-10-07T10:33:04Z","pushed_at":"2018-03-12T06:30:31Z","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":610199,"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":44,"license":null,"forks":7,"open_issues":44,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/907"},"issue":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/907"},"comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/907/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/907/commits"},"statuses":{"href":"https://api.github.com/repos/digitalgreenorg/dg/statuses/1f2e7bcbaec5989784930f6a1d5f9d29f521bc23"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Abhishek-lodha"}}