{"action":"closed","number":1,"pull_request":{"url":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1","id":190759128,"html_url":"https://github.com/chickenticket/pychickenticket/pull/1","diff_url":"https://github.com/chickenticket/pychickenticket/pull/1.diff","patch_url":"https://github.com/chickenticket/pychickenticket/pull/1.patch","issue_url":"https://api.github.com/repos/chickenticket/pychickenticket/issues/1","number":1,"state":"closed","locked":false,"title":"add logger and db wrapper","user":{"login":"AnonymousDapper","id":10648453,"avatar_url":"https://avatars1.githubusercontent.com/u/10648453?v=4","gravatar_id":"","url":"https://api.github.com/users/AnonymousDapper","html_url":"https://github.com/AnonymousDapper","followers_url":"https://api.github.com/users/AnonymousDapper/followers","following_url":"https://api.github.com/users/AnonymousDapper/following{/other_user}","gists_url":"https://api.github.com/users/AnonymousDapper/gists{/gist_id}","starred_url":"https://api.github.com/users/AnonymousDapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnonymousDapper/subscriptions","organizations_url":"https://api.github.com/users/AnonymousDapper/orgs","repos_url":"https://api.github.com/users/AnonymousDapper/repos","events_url":"https://api.github.com/users/AnonymousDapper/events{/privacy}","received_events_url":"https://api.github.com/users/AnonymousDapper/received_events","type":"User","site_admin":false},"body":"The db wrapper is mean to be used with the contextmanager, so a query example should look like\r\n```py\r\ndb_wrapper = db.DB()\r\n\r\nwith db_wrapper.get_session() as sess:\r\n    transactions = sess.query(db.Ledger).all()\r\n```\r\n\r\nThe only requirements to use the logger wrapper is to import the `get_logger` function and call that at the top of the script file (do this in each file, preferably) and pass a `level=log_level` if you want a level besides `WARNING`.\r\nAfter that, it functions like a normal logger object.\r\n\r\n( also adds .gitignore, because we don't have one for some reason @Aareon )","created_at":"2018-05-26T21:05:43Z","updated_at":"2018-05-26T21:09:55Z","closed_at":"2018-05-26T21:09:55Z","merged_at":"2018-05-26T21:09:55Z","merge_commit_sha":"bc62110c35b2bb4890afd6e3c194bfa9f70a00f9","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1/commits","review_comments_url":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1/comments","review_comment_url":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chickenticket/pychickenticket/issues/1/comments","statuses_url":"https://api.github.com/repos/chickenticket/pychickenticket/statuses/4289d4f7dd11aad7c7b967c5818e164e450d0f55","head":{"label":"AnonymousDapper:master","ref":"master","sha":"4289d4f7dd11aad7c7b967c5818e164e450d0f55","user":{"login":"AnonymousDapper","id":10648453,"avatar_url":"https://avatars1.githubusercontent.com/u/10648453?v=4","gravatar_id":"","url":"https://api.github.com/users/AnonymousDapper","html_url":"https://github.com/AnonymousDapper","followers_url":"https://api.github.com/users/AnonymousDapper/followers","following_url":"https://api.github.com/users/AnonymousDapper/following{/other_user}","gists_url":"https://api.github.com/users/AnonymousDapper/gists{/gist_id}","starred_url":"https://api.github.com/users/AnonymousDapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnonymousDapper/subscriptions","organizations_url":"https://api.github.com/users/AnonymousDapper/orgs","repos_url":"https://api.github.com/users/AnonymousDapper/repos","events_url":"https://api.github.com/users/AnonymousDapper/events{/privacy}","received_events_url":"https://api.github.com/users/AnonymousDapper/received_events","type":"User","site_admin":false},"repo":{"id":134987507,"name":"pychickenticket","full_name":"AnonymousDapper/pychickenticket","owner":{"login":"AnonymousDapper","id":10648453,"avatar_url":"https://avatars1.githubusercontent.com/u/10648453?v=4","gravatar_id":"","url":"https://api.github.com/users/AnonymousDapper","html_url":"https://github.com/AnonymousDapper","followers_url":"https://api.github.com/users/AnonymousDapper/followers","following_url":"https://api.github.com/users/AnonymousDapper/following{/other_user}","gists_url":"https://api.github.com/users/AnonymousDapper/gists{/gist_id}","starred_url":"https://api.github.com/users/AnonymousDapper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AnonymousDapper/subscriptions","organizations_url":"https://api.github.com/users/AnonymousDapper/orgs","repos_url":"https://api.github.com/users/AnonymousDapper/repos","events_url":"https://api.github.com/users/AnonymousDapper/events{/privacy}","received_events_url":"https://api.github.com/users/AnonymousDapper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AnonymousDapper/pychickenticket","description":null,"fork":true,"url":"https://api.github.com/repos/AnonymousDapper/pychickenticket","forks_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/forks","keys_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/teams","hooks_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/hooks","issue_events_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/issues/events{/number}","events_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/events","assignees_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/assignees{/user}","branches_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/branches{/branch}","tags_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/tags","blobs_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/git/refs{/sha}","trees_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/statuses/{sha}","languages_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/languages","stargazers_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/stargazers","contributors_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/contributors","subscribers_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/subscribers","subscription_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/subscription","commits_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/commits{/sha}","git_commits_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/git/commits{/sha}","comments_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/comments{/number}","issue_comment_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/issues/comments{/number}","contents_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/contents/{+path}","compare_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/merges","archive_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/downloads","issues_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/issues{/number}","pulls_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/pulls{/number}","milestones_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/milestones{/number}","notifications_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/labels{/name}","releases_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/releases{/id}","deployments_url":"https://api.github.com/repos/AnonymousDapper/pychickenticket/deployments","created_at":"2018-05-26T18:59:32Z","updated_at":"2018-05-26T21:01:20Z","pushed_at":"2018-05-26T21:01:19Z","git_url":"git://github.com/AnonymousDapper/pychickenticket.git","ssh_url":"git@github.com:AnonymousDapper/pychickenticket.git","clone_url":"https://github.com/AnonymousDapper/pychickenticket.git","svn_url":"https://github.com/AnonymousDapper/pychickenticket","homepage":null,"size":1,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chickenticket:master","ref":"master","sha":"d5f2bd57db7a493f112966107c15982c14170f4f","user":{"login":"chickenticket","id":39636187,"avatar_url":"https://avatars1.githubusercontent.com/u/39636187?v=4","gravatar_id":"","url":"https://api.github.com/users/chickenticket","html_url":"https://github.com/chickenticket","followers_url":"https://api.github.com/users/chickenticket/followers","following_url":"https://api.github.com/users/chickenticket/following{/other_user}","gists_url":"https://api.github.com/users/chickenticket/gists{/gist_id}","starred_url":"https://api.github.com/users/chickenticket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chickenticket/subscriptions","organizations_url":"https://api.github.com/users/chickenticket/orgs","repos_url":"https://api.github.com/users/chickenticket/repos","events_url":"https://api.github.com/users/chickenticket/events{/privacy}","received_events_url":"https://api.github.com/users/chickenticket/received_events","type":"Organization","site_admin":false},"repo":{"id":134909144,"name":"pychickenticket","full_name":"chickenticket/pychickenticket","owner":{"login":"chickenticket","id":39636187,"avatar_url":"https://avatars1.githubusercontent.com/u/39636187?v=4","gravatar_id":"","url":"https://api.github.com/users/chickenticket","html_url":"https://github.com/chickenticket","followers_url":"https://api.github.com/users/chickenticket/followers","following_url":"https://api.github.com/users/chickenticket/following{/other_user}","gists_url":"https://api.github.com/users/chickenticket/gists{/gist_id}","starred_url":"https://api.github.com/users/chickenticket/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chickenticket/subscriptions","organizations_url":"https://api.github.com/users/chickenticket/orgs","repos_url":"https://api.github.com/users/chickenticket/repos","events_url":"https://api.github.com/users/chickenticket/events{/privacy}","received_events_url":"https://api.github.com/users/chickenticket/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chickenticket/pychickenticket","description":"Cryptocurrency Network for Humans","fork":false,"url":"https://api.github.com/repos/chickenticket/pychickenticket","forks_url":"https://api.github.com/repos/chickenticket/pychickenticket/forks","keys_url":"https://api.github.com/repos/chickenticket/pychickenticket/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chickenticket/pychickenticket/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chickenticket/pychickenticket/teams","hooks_url":"https://api.github.com/repos/chickenticket/pychickenticket/hooks","issue_events_url":"https://api.github.com/repos/chickenticket/pychickenticket/issues/events{/number}","events_url":"https://api.github.com/repos/chickenticket/pychickenticket/events","assignees_url":"https://api.github.com/repos/chickenticket/pychickenticket/assignees{/user}","branches_url":"https://api.github.com/repos/chickenticket/pychickenticket/branches{/branch}","tags_url":"https://api.github.com/repos/chickenticket/pychickenticket/tags","blobs_url":"https://api.github.com/repos/chickenticket/pychickenticket/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chickenticket/pychickenticket/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chickenticket/pychickenticket/git/refs{/sha}","trees_url":"https://api.github.com/repos/chickenticket/pychickenticket/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chickenticket/pychickenticket/statuses/{sha}","languages_url":"https://api.github.com/repos/chickenticket/pychickenticket/languages","stargazers_url":"https://api.github.com/repos/chickenticket/pychickenticket/stargazers","contributors_url":"https://api.github.com/repos/chickenticket/pychickenticket/contributors","subscribers_url":"https://api.github.com/repos/chickenticket/pychickenticket/subscribers","subscription_url":"https://api.github.com/repos/chickenticket/pychickenticket/subscription","commits_url":"https://api.github.com/repos/chickenticket/pychickenticket/commits{/sha}","git_commits_url":"https://api.github.com/repos/chickenticket/pychickenticket/git/commits{/sha}","comments_url":"https://api.github.com/repos/chickenticket/pychickenticket/comments{/number}","issue_comment_url":"https://api.github.com/repos/chickenticket/pychickenticket/issues/comments{/number}","contents_url":"https://api.github.com/repos/chickenticket/pychickenticket/contents/{+path}","compare_url":"https://api.github.com/repos/chickenticket/pychickenticket/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chickenticket/pychickenticket/merges","archive_url":"https://api.github.com/repos/chickenticket/pychickenticket/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chickenticket/pychickenticket/downloads","issues_url":"https://api.github.com/repos/chickenticket/pychickenticket/issues{/number}","pulls_url":"https://api.github.com/repos/chickenticket/pychickenticket/pulls{/number}","milestones_url":"https://api.github.com/repos/chickenticket/pychickenticket/milestones{/number}","notifications_url":"https://api.github.com/repos/chickenticket/pychickenticket/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chickenticket/pychickenticket/labels{/name}","releases_url":"https://api.github.com/repos/chickenticket/pychickenticket/releases{/id}","deployments_url":"https://api.github.com/repos/chickenticket/pychickenticket/deployments","created_at":"2018-05-25T22:10:04Z","updated_at":"2018-05-26T21:05:03Z","pushed_at":"2018-05-26T21:09:55Z","git_url":"git://github.com/chickenticket/pychickenticket.git","ssh_url":"git@github.com:chickenticket/pychickenticket.git","clone_url":"https://github.com/chickenticket/pychickenticket.git","svn_url":"https://github.com/chickenticket/pychickenticket","homepage":"","size":1,"stargazers_count":1,"watchers_count":1,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1"},"html":{"href":"https://github.com/chickenticket/pychickenticket/pull/1"},"issue":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/issues/1"},"comments":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/chickenticket/pychickenticket/statuses/4289d4f7dd11aad7c7b967c5818e164e450d0f55"}},"author_association":"NONE","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"Aareon","id":9089510,"avatar_url":"https://avatars3.githubusercontent.com/u/9089510?v=4","gravatar_id":"","url":"https://api.github.com/users/Aareon","html_url":"https://github.com/Aareon","followers_url":"https://api.github.com/users/Aareon/followers","following_url":"https://api.github.com/users/Aareon/following{/other_user}","gists_url":"https://api.github.com/users/Aareon/gists{/gist_id}","starred_url":"https://api.github.com/users/Aareon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Aareon/subscriptions","organizations_url":"https://api.github.com/users/Aareon/orgs","repos_url":"https://api.github.com/users/Aareon/repos","events_url":"https://api.github.com/users/Aareon/events{/privacy}","received_events_url":"https://api.github.com/users/Aareon/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":145,"deletions":0,"changed_files":3}}
{"actor":{"display_login":"Aareon"}}