{"action":"created","comment":{"url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/comments/70229882","id":70229882,"diff_hunk":"@@ -79,6 +83,21 @@ def get_queryset(self):\n             qs = qs.filter(Q(title__icontains=text) |\n                            Q(description__icontains=text))\n \n+        # Searching for tasks can mean 2 things:\n+        # 1) Search for tasks a specifc day\n+        # 2) Search for tasks that take place over a period of time\n+        start_date = self.request.query_params.get('start_date', None)\n+        end_date = self.request.query_params.get('end_date', None)\n+\n+        # User searches for tasks on a specific day.\n+        if start_date and not end_date:\n+            qs = qs.filter(Q(type='event', deadline=start_date) |\n+                           Q(type='ongoing', deadline__gte=start_date))\n+\n+        # User searches for tasks in a specific range\n+        if start_date and end_date:\n+            qs = qs.filter(deadline__range=[start_date, end_date])","path":"bluebottle/bb_tasks/views.py","position":31,"original_position":31,"commit_id":"bbfd4aed4c09443d29938c65f4bd4b9b1c7b716b","original_commit_id":"bbfd4aed4c09443d29938c65f4bd4b9b1c7b716b","user":{"login":"aethemba","id":859730,"avatar_url":"https://avatars.githubusercontent.com/u/859730?v=3","gravatar_id":"","url":"https://api.github.com/users/aethemba","html_url":"https://github.com/aethemba","followers_url":"https://api.github.com/users/aethemba/followers","following_url":"https://api.github.com/users/aethemba/following{/other_user}","gists_url":"https://api.github.com/users/aethemba/gists{/gist_id}","starred_url":"https://api.github.com/users/aethemba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aethemba/subscriptions","organizations_url":"https://api.github.com/users/aethemba/orgs","repos_url":"https://api.github.com/users/aethemba/repos","events_url":"https://api.github.com/users/aethemba/events{/privacy}","received_events_url":"https://api.github.com/users/aethemba/received_events","type":"User","site_admin":false},"body":"Which line are you referring to? Because line 99 doesn't filter on type and if there is an explicit end_date it shouldn't return anything outside of that range.  ","created_at":"2016-07-11T09:53:02Z","updated_at":"2016-07-11T09:53:02Z","html_url":"https://github.com/onepercentclub/bluebottle/pull/2147#discussion_r70229882","pull_request_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147","_links":{"self":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/comments/70229882"},"html":{"href":"https://github.com/onepercentclub/bluebottle/pull/2147#discussion_r70229882"},"pull_request":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147"}}},"pull_request":{"url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147","id":76583705,"html_url":"https://github.com/onepercentclub/bluebottle/pull/2147","diff_url":"https://github.com/onepercentclub/bluebottle/pull/2147.diff","patch_url":"https://github.com/onepercentclub/bluebottle/pull/2147.patch","issue_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/2147","number":2147,"state":"open","locked":false,"title":"added task filter on TaskList view and added tests","user":{"login":"aethemba","id":859730,"avatar_url":"https://avatars.githubusercontent.com/u/859730?v=3","gravatar_id":"","url":"https://api.github.com/users/aethemba","html_url":"https://github.com/aethemba","followers_url":"https://api.github.com/users/aethemba/followers","following_url":"https://api.github.com/users/aethemba/following{/other_user}","gists_url":"https://api.github.com/users/aethemba/gists{/gist_id}","starred_url":"https://api.github.com/users/aethemba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aethemba/subscriptions","organizations_url":"https://api.github.com/users/aethemba/orgs","repos_url":"https://api.github.com/users/aethemba/repos","events_url":"https://api.github.com/users/aethemba/events{/privacy}","received_events_url":"https://api.github.com/users/aethemba/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-07T12:05:39Z","updated_at":"2016-07-11T09:53:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11a8131765e9af93ae9a6d3fa4c1cd92e74c0fe1","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147/commits","review_comments_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147/comments","review_comment_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/2147/comments","statuses_url":"https://api.github.com/repos/onepercentclub/bluebottle/statuses/bbfd4aed4c09443d29938c65f4bd4b9b1c7b716b","head":{"label":"onepercentclub:feature/BB-7370","ref":"feature/BB-7370","sha":"bbfd4aed4c09443d29938c65f4bd4b9b1c7b716b","user":{"login":"onepercentclub","id":1748818,"avatar_url":"https://avatars.githubusercontent.com/u/1748818?v=3","gravatar_id":"","url":"https://api.github.com/users/onepercentclub","html_url":"https://github.com/onepercentclub","followers_url":"https://api.github.com/users/onepercentclub/followers","following_url":"https://api.github.com/users/onepercentclub/following{/other_user}","gists_url":"https://api.github.com/users/onepercentclub/gists{/gist_id}","starred_url":"https://api.github.com/users/onepercentclub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onepercentclub/subscriptions","organizations_url":"https://api.github.com/users/onepercentclub/orgs","repos_url":"https://api.github.com/users/onepercentclub/repos","events_url":"https://api.github.com/users/onepercentclub/events{/privacy}","received_events_url":"https://api.github.com/users/onepercentclub/received_events","type":"Organization","site_admin":false},"repo":{"id":13149527,"name":"bluebottle","full_name":"onepercentclub/bluebottle","owner":{"login":"onepercentclub","id":1748818,"avatar_url":"https://avatars.githubusercontent.com/u/1748818?v=3","gravatar_id":"","url":"https://api.github.com/users/onepercentclub","html_url":"https://github.com/onepercentclub","followers_url":"https://api.github.com/users/onepercentclub/followers","following_url":"https://api.github.com/users/onepercentclub/following{/other_user}","gists_url":"https://api.github.com/users/onepercentclub/gists{/gist_id}","starred_url":"https://api.github.com/users/onepercentclub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onepercentclub/subscriptions","organizations_url":"https://api.github.com/users/onepercentclub/orgs","repos_url":"https://api.github.com/users/onepercentclub/repos","events_url":"https://api.github.com/users/onepercentclub/events{/privacy}","received_events_url":"https://api.github.com/users/onepercentclub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onepercentclub/bluebottle","description":"Bluebottle","fork":false,"url":"https://api.github.com/repos/onepercentclub/bluebottle","forks_url":"https://api.github.com/repos/onepercentclub/bluebottle/forks","keys_url":"https://api.github.com/repos/onepercentclub/bluebottle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onepercentclub/bluebottle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onepercentclub/bluebottle/teams","hooks_url":"https://api.github.com/repos/onepercentclub/bluebottle/hooks","issue_events_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/events{/number}","events_url":"https://api.github.com/repos/onepercentclub/bluebottle/events","assignees_url":"https://api.github.com/repos/onepercentclub/bluebottle/assignees{/user}","branches_url":"https://api.github.com/repos/onepercentclub/bluebottle/branches{/branch}","tags_url":"https://api.github.com/repos/onepercentclub/bluebottle/tags","blobs_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/refs{/sha}","trees_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onepercentclub/bluebottle/statuses/{sha}","languages_url":"https://api.github.com/repos/onepercentclub/bluebottle/languages","stargazers_url":"https://api.github.com/repos/onepercentclub/bluebottle/stargazers","contributors_url":"https://api.github.com/repos/onepercentclub/bluebottle/contributors","subscribers_url":"https://api.github.com/repos/onepercentclub/bluebottle/subscribers","subscription_url":"https://api.github.com/repos/onepercentclub/bluebottle/subscription","commits_url":"https://api.github.com/repos/onepercentclub/bluebottle/commits{/sha}","git_commits_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/commits{/sha}","comments_url":"https://api.github.com/repos/onepercentclub/bluebottle/comments{/number}","issue_comment_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/comments{/number}","contents_url":"https://api.github.com/repos/onepercentclub/bluebottle/contents/{+path}","compare_url":"https://api.github.com/repos/onepercentclub/bluebottle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onepercentclub/bluebottle/merges","archive_url":"https://api.github.com/repos/onepercentclub/bluebottle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onepercentclub/bluebottle/downloads","issues_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues{/number}","pulls_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls{/number}","milestones_url":"https://api.github.com/repos/onepercentclub/bluebottle/milestones{/number}","notifications_url":"https://api.github.com/repos/onepercentclub/bluebottle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onepercentclub/bluebottle/labels{/name}","releases_url":"https://api.github.com/repos/onepercentclub/bluebottle/releases{/id}","deployments_url":"https://api.github.com/repos/onepercentclub/bluebottle/deployments","created_at":"2013-09-27T12:09:13Z","updated_at":"2016-06-13T13:57:03Z","pushed_at":"2016-07-07T12:05:39Z","git_url":"git://github.com/onepercentclub/bluebottle.git","ssh_url":"git@github.com:onepercentclub/bluebottle.git","clone_url":"https://github.com/onepercentclub/bluebottle.git","svn_url":"https://github.com/onepercentclub/bluebottle","homepage":null,"size":42230,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":3,"forks":18,"open_issues":3,"watchers":4,"default_branch":"develop"}},"base":{"label":"onepercentclub:develop","ref":"develop","sha":"ffcd8aed4a4566f5145dbf1b933172e8b0a47da3","user":{"login":"onepercentclub","id":1748818,"avatar_url":"https://avatars.githubusercontent.com/u/1748818?v=3","gravatar_id":"","url":"https://api.github.com/users/onepercentclub","html_url":"https://github.com/onepercentclub","followers_url":"https://api.github.com/users/onepercentclub/followers","following_url":"https://api.github.com/users/onepercentclub/following{/other_user}","gists_url":"https://api.github.com/users/onepercentclub/gists{/gist_id}","starred_url":"https://api.github.com/users/onepercentclub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onepercentclub/subscriptions","organizations_url":"https://api.github.com/users/onepercentclub/orgs","repos_url":"https://api.github.com/users/onepercentclub/repos","events_url":"https://api.github.com/users/onepercentclub/events{/privacy}","received_events_url":"https://api.github.com/users/onepercentclub/received_events","type":"Organization","site_admin":false},"repo":{"id":13149527,"name":"bluebottle","full_name":"onepercentclub/bluebottle","owner":{"login":"onepercentclub","id":1748818,"avatar_url":"https://avatars.githubusercontent.com/u/1748818?v=3","gravatar_id":"","url":"https://api.github.com/users/onepercentclub","html_url":"https://github.com/onepercentclub","followers_url":"https://api.github.com/users/onepercentclub/followers","following_url":"https://api.github.com/users/onepercentclub/following{/other_user}","gists_url":"https://api.github.com/users/onepercentclub/gists{/gist_id}","starred_url":"https://api.github.com/users/onepercentclub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onepercentclub/subscriptions","organizations_url":"https://api.github.com/users/onepercentclub/orgs","repos_url":"https://api.github.com/users/onepercentclub/repos","events_url":"https://api.github.com/users/onepercentclub/events{/privacy}","received_events_url":"https://api.github.com/users/onepercentclub/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/onepercentclub/bluebottle","description":"Bluebottle","fork":false,"url":"https://api.github.com/repos/onepercentclub/bluebottle","forks_url":"https://api.github.com/repos/onepercentclub/bluebottle/forks","keys_url":"https://api.github.com/repos/onepercentclub/bluebottle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onepercentclub/bluebottle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onepercentclub/bluebottle/teams","hooks_url":"https://api.github.com/repos/onepercentclub/bluebottle/hooks","issue_events_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/events{/number}","events_url":"https://api.github.com/repos/onepercentclub/bluebottle/events","assignees_url":"https://api.github.com/repos/onepercentclub/bluebottle/assignees{/user}","branches_url":"https://api.github.com/repos/onepercentclub/bluebottle/branches{/branch}","tags_url":"https://api.github.com/repos/onepercentclub/bluebottle/tags","blobs_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/refs{/sha}","trees_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onepercentclub/bluebottle/statuses/{sha}","languages_url":"https://api.github.com/repos/onepercentclub/bluebottle/languages","stargazers_url":"https://api.github.com/repos/onepercentclub/bluebottle/stargazers","contributors_url":"https://api.github.com/repos/onepercentclub/bluebottle/contributors","subscribers_url":"https://api.github.com/repos/onepercentclub/bluebottle/subscribers","subscription_url":"https://api.github.com/repos/onepercentclub/bluebottle/subscription","commits_url":"https://api.github.com/repos/onepercentclub/bluebottle/commits{/sha}","git_commits_url":"https://api.github.com/repos/onepercentclub/bluebottle/git/commits{/sha}","comments_url":"https://api.github.com/repos/onepercentclub/bluebottle/comments{/number}","issue_comment_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues/comments{/number}","contents_url":"https://api.github.com/repos/onepercentclub/bluebottle/contents/{+path}","compare_url":"https://api.github.com/repos/onepercentclub/bluebottle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onepercentclub/bluebottle/merges","archive_url":"https://api.github.com/repos/onepercentclub/bluebottle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onepercentclub/bluebottle/downloads","issues_url":"https://api.github.com/repos/onepercentclub/bluebottle/issues{/number}","pulls_url":"https://api.github.com/repos/onepercentclub/bluebottle/pulls{/number}","milestones_url":"https://api.github.com/repos/onepercentclub/bluebottle/milestones{/number}","notifications_url":"https://api.github.com/repos/onepercentclub/bluebottle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onepercentclub/bluebottle/labels{/name}","releases_url":"https://api.github.com/repos/onepercentclub/bluebottle/releases{/id}","deployments_url":"https://api.github.com/repos/onepercentclub/bluebottle/deployments","created_at":"2013-09-27T12:09:13Z","updated_at":"2016-06-13T13:57:03Z","pushed_at":"2016-07-07T12:05:39Z","git_url":"git://github.com/onepercentclub/bluebottle.git","ssh_url":"git@github.com:onepercentclub/bluebottle.git","clone_url":"https://github.com/onepercentclub/bluebottle.git","svn_url":"https://github.com/onepercentclub/bluebottle","homepage":null,"size":42230,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":3,"forks":18,"open_issues":3,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147"},"html":{"href":"https://github.com/onepercentclub/bluebottle/pull/2147"},"issue":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/issues/2147"},"comments":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/issues/2147/comments"},"review_comments":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147/comments"},"review_comment":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/pulls/2147/commits"},"statuses":{"href":"https://api.github.com/repos/onepercentclub/bluebottle/statuses/bbfd4aed4c09443d29938c65f4bd4b9b1c7b716b"}}}}
{"actor":{"display_login":"aethemba"}}