{"action":"created","comment":{"url":"https://api.github.com/repos/CanalTP/kirin/pulls/comments/41247027","id":41247027,"diff_hunk":"@@ -192,3 +190,16 @@ def __init__(self, raw_data, connector,\n         self.status = status\n         self.error = error\n         self.received_at = received_at\n+\n+    def __repr__(self):\n+        return '<RealTimeUpdate %r>' % self.id\n+\n+    @classmethod\n+    def all(cls, contributor, start_date=datetime.datetime.now().date(), end_date=None):\n+        query = cls.query.filter_by(contributor=contributor)\n+        query = query.join(cls.trip_updates)","path":"kirin/core/model.py","position":27,"original_position":27,"commit_id":"14f34911b1fe8c230122f354532b3fa70d8762cd","original_commit_id":"14f34911b1fe8c230122f354532b3fa70d8762cd","user":{"login":"kinnou02","id":448185,"avatar_url":"https://avatars.githubusercontent.com/u/448185?v=3","gravatar_id":"","url":"https://api.github.com/users/kinnou02","html_url":"https://github.com/kinnou02","followers_url":"https://api.github.com/users/kinnou02/followers","following_url":"https://api.github.com/users/kinnou02/following{/other_user}","gists_url":"https://api.github.com/users/kinnou02/gists{/gist_id}","starred_url":"https://api.github.com/users/kinnou02/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kinnou02/subscriptions","organizations_url":"https://api.github.com/users/kinnou02/orgs","repos_url":"https://api.github.com/users/kinnou02/repos","events_url":"https://api.github.com/users/kinnou02/events{/privacy}","received_events_url":"https://api.github.com/users/kinnou02/received_events","type":"User","site_admin":false},"body":"All the indexes for this request exist?","created_at":"2015-10-06T10:12:47Z","updated_at":"2015-10-06T10:12:47Z","html_url":"https://github.com/CanalTP/kirin/pull/37#discussion_r41247027","pull_request_url":"https://api.github.com/repos/CanalTP/kirin/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/comments/41247027"},"html":{"href":"https://github.com/CanalTP/kirin/pull/37#discussion_r41247027"},"pull_request":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/CanalTP/kirin/pulls/37","id":46883297,"html_url":"https://github.com/CanalTP/kirin/pull/37","diff_url":"https://github.com/CanalTP/kirin/pull/37.diff","patch_url":"https://github.com/CanalTP/kirin/pull/37.patch","issue_url":"https://api.github.com/repos/CanalTP/kirin/issues/37","number":37,"state":"open","locked":false,"title":"Get activate real_time_update objects","user":{"login":"azime","id":4006603,"avatar_url":"https://avatars.githubusercontent.com/u/4006603?v=3","gravatar_id":"","url":"https://api.github.com/users/azime","html_url":"https://github.com/azime","followers_url":"https://api.github.com/users/azime/followers","following_url":"https://api.github.com/users/azime/following{/other_user}","gists_url":"https://api.github.com/users/azime/gists{/gist_id}","starred_url":"https://api.github.com/users/azime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azime/subscriptions","organizations_url":"https://api.github.com/users/azime/orgs","repos_url":"https://api.github.com/users/azime/repos","events_url":"https://api.github.com/users/azime/events{/privacy}","received_events_url":"https://api.github.com/users/azime/received_events","type":"User","site_admin":false},"body":"Select all real_time_update objects by contributor, start and end date.","created_at":"2015-10-06T10:02:21Z","updated_at":"2015-10-06T10:12:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef23d8176b30b3c991b72ed4289b6500a71254e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/CanalTP/kirin/pulls/37/commits","review_comments_url":"https://api.github.com/repos/CanalTP/kirin/pulls/37/comments","review_comment_url":"https://api.github.com/repos/CanalTP/kirin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CanalTP/kirin/issues/37/comments","statuses_url":"https://api.github.com/repos/CanalTP/kirin/statuses/14f34911b1fe8c230122f354532b3fa70d8762cd","head":{"label":"azime:get_activate_real_time_update","ref":"get_activate_real_time_update","sha":"14f34911b1fe8c230122f354532b3fa70d8762cd","user":{"login":"azime","id":4006603,"avatar_url":"https://avatars.githubusercontent.com/u/4006603?v=3","gravatar_id":"","url":"https://api.github.com/users/azime","html_url":"https://github.com/azime","followers_url":"https://api.github.com/users/azime/followers","following_url":"https://api.github.com/users/azime/following{/other_user}","gists_url":"https://api.github.com/users/azime/gists{/gist_id}","starred_url":"https://api.github.com/users/azime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azime/subscriptions","organizations_url":"https://api.github.com/users/azime/orgs","repos_url":"https://api.github.com/users/azime/repos","events_url":"https://api.github.com/users/azime/events{/privacy}","received_events_url":"https://api.github.com/users/azime/received_events","type":"User","site_admin":false},"repo":{"id":43742228,"name":"kirin-1","full_name":"azime/kirin-1","owner":{"login":"azime","id":4006603,"avatar_url":"https://avatars.githubusercontent.com/u/4006603?v=3","gravatar_id":"","url":"https://api.github.com/users/azime","html_url":"https://github.com/azime","followers_url":"https://api.github.com/users/azime/followers","following_url":"https://api.github.com/users/azime/following{/other_user}","gists_url":"https://api.github.com/users/azime/gists{/gist_id}","starred_url":"https://api.github.com/users/azime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azime/subscriptions","organizations_url":"https://api.github.com/users/azime/orgs","repos_url":"https://api.github.com/users/azime/repos","events_url":"https://api.github.com/users/azime/events{/privacy}","received_events_url":"https://api.github.com/users/azime/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/azime/kirin-1","description":"The magical unicorn","fork":true,"url":"https://api.github.com/repos/azime/kirin-1","forks_url":"https://api.github.com/repos/azime/kirin-1/forks","keys_url":"https://api.github.com/repos/azime/kirin-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/azime/kirin-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/azime/kirin-1/teams","hooks_url":"https://api.github.com/repos/azime/kirin-1/hooks","issue_events_url":"https://api.github.com/repos/azime/kirin-1/issues/events{/number}","events_url":"https://api.github.com/repos/azime/kirin-1/events","assignees_url":"https://api.github.com/repos/azime/kirin-1/assignees{/user}","branches_url":"https://api.github.com/repos/azime/kirin-1/branches{/branch}","tags_url":"https://api.github.com/repos/azime/kirin-1/tags","blobs_url":"https://api.github.com/repos/azime/kirin-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/azime/kirin-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/azime/kirin-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/azime/kirin-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/azime/kirin-1/statuses/{sha}","languages_url":"https://api.github.com/repos/azime/kirin-1/languages","stargazers_url":"https://api.github.com/repos/azime/kirin-1/stargazers","contributors_url":"https://api.github.com/repos/azime/kirin-1/contributors","subscribers_url":"https://api.github.com/repos/azime/kirin-1/subscribers","subscription_url":"https://api.github.com/repos/azime/kirin-1/subscription","commits_url":"https://api.github.com/repos/azime/kirin-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/azime/kirin-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/azime/kirin-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/azime/kirin-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/azime/kirin-1/contents/{+path}","compare_url":"https://api.github.com/repos/azime/kirin-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/azime/kirin-1/merges","archive_url":"https://api.github.com/repos/azime/kirin-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/azime/kirin-1/downloads","issues_url":"https://api.github.com/repos/azime/kirin-1/issues{/number}","pulls_url":"https://api.github.com/repos/azime/kirin-1/pulls{/number}","milestones_url":"https://api.github.com/repos/azime/kirin-1/milestones{/number}","notifications_url":"https://api.github.com/repos/azime/kirin-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/azime/kirin-1/labels{/name}","releases_url":"https://api.github.com/repos/azime/kirin-1/releases{/id}","created_at":"2015-10-06T09:48:43Z","updated_at":"2015-10-06T09:48:44Z","pushed_at":"2015-10-06T10:00:49Z","git_url":"git://github.com/azime/kirin-1.git","ssh_url":"git@github.com:azime/kirin-1.git","clone_url":"https://github.com/azime/kirin-1.git","svn_url":"https://github.com/azime/kirin-1","homepage":null,"size":635,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CanalTP:master","ref":"master","sha":"c83c430e08ac6c7016d78ae846b7f05e19432273","user":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"repo":{"id":39950201,"name":"kirin","full_name":"CanalTP/kirin","owner":{"login":"CanalTP","id":2743985,"avatar_url":"https://avatars.githubusercontent.com/u/2743985?v=3","gravatar_id":"","url":"https://api.github.com/users/CanalTP","html_url":"https://github.com/CanalTP","followers_url":"https://api.github.com/users/CanalTP/followers","following_url":"https://api.github.com/users/CanalTP/following{/other_user}","gists_url":"https://api.github.com/users/CanalTP/gists{/gist_id}","starred_url":"https://api.github.com/users/CanalTP/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CanalTP/subscriptions","organizations_url":"https://api.github.com/users/CanalTP/orgs","repos_url":"https://api.github.com/users/CanalTP/repos","events_url":"https://api.github.com/users/CanalTP/events{/privacy}","received_events_url":"https://api.github.com/users/CanalTP/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CanalTP/kirin","description":"The magical unicorn","fork":false,"url":"https://api.github.com/repos/CanalTP/kirin","forks_url":"https://api.github.com/repos/CanalTP/kirin/forks","keys_url":"https://api.github.com/repos/CanalTP/kirin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CanalTP/kirin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CanalTP/kirin/teams","hooks_url":"https://api.github.com/repos/CanalTP/kirin/hooks","issue_events_url":"https://api.github.com/repos/CanalTP/kirin/issues/events{/number}","events_url":"https://api.github.com/repos/CanalTP/kirin/events","assignees_url":"https://api.github.com/repos/CanalTP/kirin/assignees{/user}","branches_url":"https://api.github.com/repos/CanalTP/kirin/branches{/branch}","tags_url":"https://api.github.com/repos/CanalTP/kirin/tags","blobs_url":"https://api.github.com/repos/CanalTP/kirin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CanalTP/kirin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CanalTP/kirin/git/refs{/sha}","trees_url":"https://api.github.com/repos/CanalTP/kirin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CanalTP/kirin/statuses/{sha}","languages_url":"https://api.github.com/repos/CanalTP/kirin/languages","stargazers_url":"https://api.github.com/repos/CanalTP/kirin/stargazers","contributors_url":"https://api.github.com/repos/CanalTP/kirin/contributors","subscribers_url":"https://api.github.com/repos/CanalTP/kirin/subscribers","subscription_url":"https://api.github.com/repos/CanalTP/kirin/subscription","commits_url":"https://api.github.com/repos/CanalTP/kirin/commits{/sha}","git_commits_url":"https://api.github.com/repos/CanalTP/kirin/git/commits{/sha}","comments_url":"https://api.github.com/repos/CanalTP/kirin/comments{/number}","issue_comment_url":"https://api.github.com/repos/CanalTP/kirin/issues/comments{/number}","contents_url":"https://api.github.com/repos/CanalTP/kirin/contents/{+path}","compare_url":"https://api.github.com/repos/CanalTP/kirin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CanalTP/kirin/merges","archive_url":"https://api.github.com/repos/CanalTP/kirin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CanalTP/kirin/downloads","issues_url":"https://api.github.com/repos/CanalTP/kirin/issues{/number}","pulls_url":"https://api.github.com/repos/CanalTP/kirin/pulls{/number}","milestones_url":"https://api.github.com/repos/CanalTP/kirin/milestones{/number}","notifications_url":"https://api.github.com/repos/CanalTP/kirin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CanalTP/kirin/labels{/name}","releases_url":"https://api.github.com/repos/CanalTP/kirin/releases{/id}","created_at":"2015-07-30T12:48:49Z","updated_at":"2015-09-28T12:43:43Z","pushed_at":"2015-10-06T10:02:22Z","git_url":"git://github.com/CanalTP/kirin.git","ssh_url":"git@github.com:CanalTP/kirin.git","clone_url":"https://github.com/CanalTP/kirin.git","svn_url":"https://github.com/CanalTP/kirin","homepage":null,"size":635,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/37"},"html":{"href":"https://github.com/CanalTP/kirin/pull/37"},"issue":{"href":"https://api.github.com/repos/CanalTP/kirin/issues/37"},"comments":{"href":"https://api.github.com/repos/CanalTP/kirin/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CanalTP/kirin/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/CanalTP/kirin/statuses/14f34911b1fe8c230122f354532b3fa70d8762cd"}}}}