{"action":"created","comment":{"url":"https://api.github.com/repos/cewing/learning-journal/pulls/comments/52108630","id":52108630,"diff_hunk":"@@ -25,3 +28,28 @@ class MyModel(Base):\n     value = Column(Integer)\n \n Index('my_index', MyModel.name, unique=True, mysql_length=255)\n+\n+class Entry(Base):\n+    __tablename__ = 'entries'\n+    id = Column(Integer, primary_key=True)\n+    title = Column(Unicode(255), unique=True, nullable=False)\n+    body = Column(Text)\n+    created = Column(DateTime, default=datetime.datetime.utcnow)\n+    edited = Column(DateTime, default=datetime.datetime.utcnow)\n+    \n+    @classmethod\n+    def all(class_):\n+        \"\"\"Return a query of all entries.\"\"\"\n+        Entry = class_\n+        q = DBSession.query(Entry)\n+        q = q.order_by(Entry.created)","path":"learning_journal/models.py","position":null,"original_position":30,"commit_id":"f1c5c0e2610e29427d850e1ba779c89b253af305","original_commit_id":"1870cc0628dfacdd8887b5c5a3527187804e597a","user":{"login":"michellehyu","id":7145128,"avatar_url":"https://avatars.githubusercontent.com/u/7145128?v=3","gravatar_id":"","url":"https://api.github.com/users/michellehyu","html_url":"https://github.com/michellehyu","followers_url":"https://api.github.com/users/michellehyu/followers","following_url":"https://api.github.com/users/michellehyu/following{/other_user}","gists_url":"https://api.github.com/users/michellehyu/gists{/gist_id}","starred_url":"https://api.github.com/users/michellehyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellehyu/subscriptions","organizations_url":"https://api.github.com/users/michellehyu/orgs","repos_url":"https://api.github.com/users/michellehyu/repos","events_url":"https://api.github.com/users/michellehyu/events{/privacy}","received_events_url":"https://api.github.com/users/michellehyu/received_events","type":"User","site_admin":false},"body":"this has been addressed :)\r\n","created_at":"2016-02-06T22:47:08Z","updated_at":"2016-02-06T22:47:08Z","html_url":"https://github.com/cewing/learning-journal/pull/1#discussion_r52108630","pull_request_url":"https://api.github.com/repos/cewing/learning-journal/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/comments/52108630"},"html":{"href":"https://github.com/cewing/learning-journal/pull/1#discussion_r52108630"},"pull_request":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/cewing/learning-journal/pulls/1","id":58175328,"html_url":"https://github.com/cewing/learning-journal/pull/1","diff_url":"https://github.com/cewing/learning-journal/pull/1.diff","patch_url":"https://github.com/cewing/learning-journal/pull/1.patch","issue_url":"https://api.github.com/repos/cewing/learning-journal/issues/1","number":1,"state":"open","locked":false,"title":"Review PR:  DO NOT MERGE","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"body":"This PR has been created for the purpose of allowing line-by-line review of the code in the head fork.","created_at":"2016-02-03T17:56:09Z","updated_at":"2016-02-06T22:47:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f6bb6b3df6e4f891c490de9eb2f83a76ae80316","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cewing/learning-journal/pulls/1/commits","review_comments_url":"https://api.github.com/repos/cewing/learning-journal/pulls/1/comments","review_comment_url":"https://api.github.com/repos/cewing/learning-journal/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cewing/learning-journal/issues/1/comments","statuses_url":"https://api.github.com/repos/cewing/learning-journal/statuses/f1c5c0e2610e29427d850e1ba779c89b253af305","head":{"label":"michellehyu:master","ref":"master","sha":"f1c5c0e2610e29427d850e1ba779c89b253af305","user":{"login":"michellehyu","id":7145128,"avatar_url":"https://avatars.githubusercontent.com/u/7145128?v=3","gravatar_id":"","url":"https://api.github.com/users/michellehyu","html_url":"https://github.com/michellehyu","followers_url":"https://api.github.com/users/michellehyu/followers","following_url":"https://api.github.com/users/michellehyu/following{/other_user}","gists_url":"https://api.github.com/users/michellehyu/gists{/gist_id}","starred_url":"https://api.github.com/users/michellehyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellehyu/subscriptions","organizations_url":"https://api.github.com/users/michellehyu/orgs","repos_url":"https://api.github.com/users/michellehyu/repos","events_url":"https://api.github.com/users/michellehyu/events{/privacy}","received_events_url":"https://api.github.com/users/michellehyu/received_events","type":"User","site_admin":false},"repo":{"id":50970376,"name":"learning-journal","full_name":"michellehyu/learning-journal","owner":{"login":"michellehyu","id":7145128,"avatar_url":"https://avatars.githubusercontent.com/u/7145128?v=3","gravatar_id":"","url":"https://api.github.com/users/michellehyu","html_url":"https://github.com/michellehyu","followers_url":"https://api.github.com/users/michellehyu/followers","following_url":"https://api.github.com/users/michellehyu/following{/other_user}","gists_url":"https://api.github.com/users/michellehyu/gists{/gist_id}","starred_url":"https://api.github.com/users/michellehyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michellehyu/subscriptions","organizations_url":"https://api.github.com/users/michellehyu/orgs","repos_url":"https://api.github.com/users/michellehyu/repos","events_url":"https://api.github.com/users/michellehyu/events{/privacy}","received_events_url":"https://api.github.com/users/michellehyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michellehyu/learning-journal","description":"sample project for python class","fork":false,"url":"https://api.github.com/repos/michellehyu/learning-journal","forks_url":"https://api.github.com/repos/michellehyu/learning-journal/forks","keys_url":"https://api.github.com/repos/michellehyu/learning-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michellehyu/learning-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michellehyu/learning-journal/teams","hooks_url":"https://api.github.com/repos/michellehyu/learning-journal/hooks","issue_events_url":"https://api.github.com/repos/michellehyu/learning-journal/issues/events{/number}","events_url":"https://api.github.com/repos/michellehyu/learning-journal/events","assignees_url":"https://api.github.com/repos/michellehyu/learning-journal/assignees{/user}","branches_url":"https://api.github.com/repos/michellehyu/learning-journal/branches{/branch}","tags_url":"https://api.github.com/repos/michellehyu/learning-journal/tags","blobs_url":"https://api.github.com/repos/michellehyu/learning-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michellehyu/learning-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michellehyu/learning-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/michellehyu/learning-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michellehyu/learning-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/michellehyu/learning-journal/languages","stargazers_url":"https://api.github.com/repos/michellehyu/learning-journal/stargazers","contributors_url":"https://api.github.com/repos/michellehyu/learning-journal/contributors","subscribers_url":"https://api.github.com/repos/michellehyu/learning-journal/subscribers","subscription_url":"https://api.github.com/repos/michellehyu/learning-journal/subscription","commits_url":"https://api.github.com/repos/michellehyu/learning-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/michellehyu/learning-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/michellehyu/learning-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/michellehyu/learning-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/michellehyu/learning-journal/contents/{+path}","compare_url":"https://api.github.com/repos/michellehyu/learning-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michellehyu/learning-journal/merges","archive_url":"https://api.github.com/repos/michellehyu/learning-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michellehyu/learning-journal/downloads","issues_url":"https://api.github.com/repos/michellehyu/learning-journal/issues{/number}","pulls_url":"https://api.github.com/repos/michellehyu/learning-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/michellehyu/learning-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/michellehyu/learning-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michellehyu/learning-journal/labels{/name}","releases_url":"https://api.github.com/repos/michellehyu/learning-journal/releases{/id}","deployments_url":"https://api.github.com/repos/michellehyu/learning-journal/deployments","created_at":"2016-02-03T03:13:51Z","updated_at":"2016-02-03T03:14:55Z","pushed_at":"2016-02-06T22:44:10Z","git_url":"git://github.com/michellehyu/learning-journal.git","ssh_url":"git@github.com:michellehyu/learning-journal.git","clone_url":"https://github.com/michellehyu/learning-journal.git","svn_url":"https://github.com/michellehyu/learning-journal","homepage":null,"size":35,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cewing:start_of_homework","ref":"start_of_homework","sha":"72b681ee42242e1eea9dfe9cb356a5c0d748e7d1","user":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"repo":{"id":51018408,"name":"learning-journal","full_name":"cewing/learning-journal","owner":{"login":"cewing","id":417109,"avatar_url":"https://avatars.githubusercontent.com/u/417109?v=3","gravatar_id":"","url":"https://api.github.com/users/cewing","html_url":"https://github.com/cewing","followers_url":"https://api.github.com/users/cewing/followers","following_url":"https://api.github.com/users/cewing/following{/other_user}","gists_url":"https://api.github.com/users/cewing/gists{/gist_id}","starred_url":"https://api.github.com/users/cewing/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cewing/subscriptions","organizations_url":"https://api.github.com/users/cewing/orgs","repos_url":"https://api.github.com/users/cewing/repos","events_url":"https://api.github.com/users/cewing/events{/privacy}","received_events_url":"https://api.github.com/users/cewing/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cewing/learning-journal","description":"sample project for python class","fork":true,"url":"https://api.github.com/repos/cewing/learning-journal","forks_url":"https://api.github.com/repos/cewing/learning-journal/forks","keys_url":"https://api.github.com/repos/cewing/learning-journal/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cewing/learning-journal/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cewing/learning-journal/teams","hooks_url":"https://api.github.com/repos/cewing/learning-journal/hooks","issue_events_url":"https://api.github.com/repos/cewing/learning-journal/issues/events{/number}","events_url":"https://api.github.com/repos/cewing/learning-journal/events","assignees_url":"https://api.github.com/repos/cewing/learning-journal/assignees{/user}","branches_url":"https://api.github.com/repos/cewing/learning-journal/branches{/branch}","tags_url":"https://api.github.com/repos/cewing/learning-journal/tags","blobs_url":"https://api.github.com/repos/cewing/learning-journal/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cewing/learning-journal/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cewing/learning-journal/git/refs{/sha}","trees_url":"https://api.github.com/repos/cewing/learning-journal/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cewing/learning-journal/statuses/{sha}","languages_url":"https://api.github.com/repos/cewing/learning-journal/languages","stargazers_url":"https://api.github.com/repos/cewing/learning-journal/stargazers","contributors_url":"https://api.github.com/repos/cewing/learning-journal/contributors","subscribers_url":"https://api.github.com/repos/cewing/learning-journal/subscribers","subscription_url":"https://api.github.com/repos/cewing/learning-journal/subscription","commits_url":"https://api.github.com/repos/cewing/learning-journal/commits{/sha}","git_commits_url":"https://api.github.com/repos/cewing/learning-journal/git/commits{/sha}","comments_url":"https://api.github.com/repos/cewing/learning-journal/comments{/number}","issue_comment_url":"https://api.github.com/repos/cewing/learning-journal/issues/comments{/number}","contents_url":"https://api.github.com/repos/cewing/learning-journal/contents/{+path}","compare_url":"https://api.github.com/repos/cewing/learning-journal/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cewing/learning-journal/merges","archive_url":"https://api.github.com/repos/cewing/learning-journal/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cewing/learning-journal/downloads","issues_url":"https://api.github.com/repos/cewing/learning-journal/issues{/number}","pulls_url":"https://api.github.com/repos/cewing/learning-journal/pulls{/number}","milestones_url":"https://api.github.com/repos/cewing/learning-journal/milestones{/number}","notifications_url":"https://api.github.com/repos/cewing/learning-journal/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cewing/learning-journal/labels{/name}","releases_url":"https://api.github.com/repos/cewing/learning-journal/releases{/id}","deployments_url":"https://api.github.com/repos/cewing/learning-journal/deployments","created_at":"2016-02-03T17:48:07Z","updated_at":"2016-02-03T17:48:09Z","pushed_at":"2016-02-06T22:44:10Z","git_url":"git://github.com/cewing/learning-journal.git","ssh_url":"git@github.com:cewing/learning-journal.git","clone_url":"https://github.com/cewing/learning-journal.git","svn_url":"https://github.com/cewing/learning-journal","homepage":null,"size":34,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/1"},"html":{"href":"https://github.com/cewing/learning-journal/pull/1"},"issue":{"href":"https://api.github.com/repos/cewing/learning-journal/issues/1"},"comments":{"href":"https://api.github.com/repos/cewing/learning-journal/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cewing/learning-journal/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/cewing/learning-journal/statuses/f1c5c0e2610e29427d850e1ba779c89b253af305"}}}}