{"action":"created","comment":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/171152092","pull_request_review_id":99953873,"id":171152092,"diff_hunk":"@@ -0,0 +1,80 @@\n+#python imports\n+import requests\n+import json\n+import datetime\n+import unicodecsv as csv\n+import xml.etree.ElementTree as ET\n+#django imports\n+from django.core.management.base import BaseCommand\n+from django.contrib.auth.models import User\n+#app imports\n+from geographies.models import *\n+from videos.models import *\n+from people.models import *\n+from activities.models import *\n+import ap_data_integration as ap\n+\n+\n+\n+class Command(BaseCommand):\n+\tdef handle(self, *args, **options):\n+\t\t#read xml from url\n+\t\treq = requests.get('http://45.127.101.204/DG_API/AP_MIS.svc/GetAdoptionDetails', auth=(settings.BLUEFROG_API_USERNAME, settings.BLUEFROG_API_PASSWORD))\n+\t\txml_file = open(\"ap/adoption.xml\", 'w')\n+\t\txml_file.write(req.content)\n+\t\txml_file.close()\n+\t\tpartner=Partner.objects.get(id=50)","path":"activities/management/commands/bluefrog_adoptions.py","position":26,"original_position":26,"commit_id":"f94d37c6185eb236dbc4fbdffad684561eafdf0b","original_commit_id":"f94d37c6185eb236dbc4fbdffad684561eafdf0b","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: [Unused variable 'partner'](https://app.codacy.com/app/alodha21051992/dg/pullRequest?prid=1189885)","created_at":"2018-02-28T06:21:51Z","updated_at":"2018-02-28T06:21:51Z","html_url":"https://github.com/digitalgreenorg/dg/pull/871#discussion_r171152092","pull_request_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments/171152092"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/871#discussion_r171152092"},"pull_request":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871"}}},"pull_request":{"url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871","id":159805058,"html_url":"https://github.com/digitalgreenorg/dg/pull/871","diff_url":"https://github.com/digitalgreenorg/dg/pull/871.diff","patch_url":"https://github.com/digitalgreenorg/dg/pull/871.patch","issue_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/871","number":871,"state":"open","locked":false,"title":"Dj apvideo","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":"2017-12-22T05:58:39Z","updated_at":"2018-02-28T06:21:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"693c7f45a76b1f2d638c6102e9c3f1726af2bd0b","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871/commits","review_comments_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871/comments","review_comment_url":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}","comments_url":"https://api.github.com/repos/digitalgreenorg/dg/issues/871/comments","statuses_url":"https://api.github.com/repos/digitalgreenorg/dg/statuses/f94d37c6185eb236dbc4fbdffad684561eafdf0b","head":{"label":"digitalgreenorg:dj-apvideo","ref":"dj-apvideo","sha":"f94d37c6185eb236dbc4fbdffad684561eafdf0b","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-02-28T06:15:12Z","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":610097,"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":42,"license":null,"forks":7,"open_issues":42,"watchers":11,"default_branch":"master"}},"base":{"label":"digitalgreenorg:master","ref":"master","sha":"4a9d20843f0d5b2b3f11c8ca7e20f7a60183e2d6","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-02-28T06:15:12Z","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":610097,"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":42,"license":null,"forks":7,"open_issues":42,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871"},"html":{"href":"https://github.com/digitalgreenorg/dg/pull/871"},"issue":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/871"},"comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/issues/871/comments"},"review_comments":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871/comments"},"review_comment":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/digitalgreenorg/dg/pulls/871/commits"},"statuses":{"href":"https://api.github.com/repos/digitalgreenorg/dg/statuses/f94d37c6185eb236dbc4fbdffad684561eafdf0b"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"codacy-bot"}}