{"action":"created","comment":{"url":"https://api.github.com/repos/UrLab/incubator/pulls/comments/114978637","pull_request_review_id":36487036,"id":114978637,"diff_hunk":"@@ -198,14 +198,27 @@ class MeetingViewSet(viewsets.ModelViewSet):\n \n \n def get_next_meeting():\n-    return Meeting.objects\\\n-                  .filter(event__start__gte=datetime.now())\\\n-                  .order_by('event__start')[0]\n+    return (\n+        Meeting.objects\n+        .filter(\n+            event__start__gte=datetime.now(),\n+            ongoing=False\n+        )\n+        .order_by('event__start')\n+        .first()\n+    )\n \n \n @private_api(point=str)\n def add_point_to_next_meeting(request, point):\n     meeting = get_next_meeting()\n+    if meeting is None:\n+        return JsonResponse(","path":"events/views.py","position":33,"original_position":33,"commit_id":"16467ff6b85315c8cc76e5c2dd515dd34161397b","original_commit_id":"16467ff6b85315c8cc76e5c2dd515dd34161397b","user":{"login":"titouanc","id":245617,"avatar_url":"https://avatars2.githubusercontent.com/u/245617?v=3","gravatar_id":"","url":"https://api.github.com/users/titouanc","html_url":"https://github.com/titouanc","followers_url":"https://api.github.com/users/titouanc/followers","following_url":"https://api.github.com/users/titouanc/following{/other_user}","gists_url":"https://api.github.com/users/titouanc/gists{/gist_id}","starred_url":"https://api.github.com/users/titouanc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/titouanc/subscriptions","organizations_url":"https://api.github.com/users/titouanc/orgs","repos_url":"https://api.github.com/users/titouanc/repos","events_url":"https://api.github.com/users/titouanc/events{/privacy}","received_events_url":"https://api.github.com/users/titouanc/received_events","type":"User","site_admin":false},"body":"If I understand correctly, the `private_api` protocol would be to return \r\n```json\r\n{\"error\": \"...\",\r\n \"hint\": \"...\"}\r\n```\r\nfor all errors ?","created_at":"2017-05-05T11:46:49Z","updated_at":"2017-05-05T11:47:03Z","html_url":"https://github.com/UrLab/incubator/pull/120#discussion_r114978637","pull_request_url":"https://api.github.com/repos/UrLab/incubator/pulls/120","_links":{"self":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/comments/114978637"},"html":{"href":"https://github.com/UrLab/incubator/pull/120#discussion_r114978637"},"pull_request":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/120"}}},"pull_request":{"url":"https://api.github.com/repos/UrLab/incubator/pulls/120","id":119152590,"html_url":"https://github.com/UrLab/incubator/pull/120","diff_url":"https://github.com/UrLab/incubator/pull/120.diff","patch_url":"https://github.com/UrLab/incubator/pull/120.patch","issue_url":"https://api.github.com/repos/UrLab/incubator/issues/120","number":120,"state":"open","locked":false,"title":"Fix 119","user":{"login":"C4ptainCrunch","id":85785,"avatar_url":"https://avatars2.githubusercontent.com/u/85785?v=3","gravatar_id":"","url":"https://api.github.com/users/C4ptainCrunch","html_url":"https://github.com/C4ptainCrunch","followers_url":"https://api.github.com/users/C4ptainCrunch/followers","following_url":"https://api.github.com/users/C4ptainCrunch/following{/other_user}","gists_url":"https://api.github.com/users/C4ptainCrunch/gists{/gist_id}","starred_url":"https://api.github.com/users/C4ptainCrunch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/C4ptainCrunch/subscriptions","organizations_url":"https://api.github.com/users/C4ptainCrunch/orgs","repos_url":"https://api.github.com/users/C4ptainCrunch/repos","events_url":"https://api.github.com/users/C4ptainCrunch/events{/privacy}","received_events_url":"https://api.github.com/users/C4ptainCrunch/received_events","type":"User","site_admin":false},"body":"Fixes #119 ","created_at":"2017-05-05T11:00:38Z","updated_at":"2017-05-05T11:47:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5ec3dcce3af2dc483ed4ed25d8aeb7ac52f784ae","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/UrLab/incubator/pulls/120/commits","review_comments_url":"https://api.github.com/repos/UrLab/incubator/pulls/120/comments","review_comment_url":"https://api.github.com/repos/UrLab/incubator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/UrLab/incubator/issues/120/comments","statuses_url":"https://api.github.com/repos/UrLab/incubator/statuses/16467ff6b85315c8cc76e5c2dd515dd34161397b","head":{"label":"UrLab:fix-119","ref":"fix-119","sha":"16467ff6b85315c8cc76e5c2dd515dd34161397b","user":{"login":"UrLab","id":1607266,"avatar_url":"https://avatars2.githubusercontent.com/u/1607266?v=3","gravatar_id":"","url":"https://api.github.com/users/UrLab","html_url":"https://github.com/UrLab","followers_url":"https://api.github.com/users/UrLab/followers","following_url":"https://api.github.com/users/UrLab/following{/other_user}","gists_url":"https://api.github.com/users/UrLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UrLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrLab/subscriptions","organizations_url":"https://api.github.com/users/UrLab/orgs","repos_url":"https://api.github.com/users/UrLab/repos","events_url":"https://api.github.com/users/UrLab/events{/privacy}","received_events_url":"https://api.github.com/users/UrLab/received_events","type":"Organization","site_admin":false},"repo":{"id":31387310,"name":"incubator","full_name":"UrLab/incubator","owner":{"login":"UrLab","id":1607266,"avatar_url":"https://avatars2.githubusercontent.com/u/1607266?v=3","gravatar_id":"","url":"https://api.github.com/users/UrLab","html_url":"https://github.com/UrLab","followers_url":"https://api.github.com/users/UrLab/followers","following_url":"https://api.github.com/users/UrLab/following{/other_user}","gists_url":"https://api.github.com/users/UrLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UrLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrLab/subscriptions","organizations_url":"https://api.github.com/users/UrLab/orgs","repos_url":"https://api.github.com/users/UrLab/repos","events_url":"https://api.github.com/users/UrLab/events{/privacy}","received_events_url":"https://api.github.com/users/UrLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UrLab/incubator","description":"New *all-in-one* django website for UrLab","fork":false,"url":"https://api.github.com/repos/UrLab/incubator","forks_url":"https://api.github.com/repos/UrLab/incubator/forks","keys_url":"https://api.github.com/repos/UrLab/incubator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UrLab/incubator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UrLab/incubator/teams","hooks_url":"https://api.github.com/repos/UrLab/incubator/hooks","issue_events_url":"https://api.github.com/repos/UrLab/incubator/issues/events{/number}","events_url":"https://api.github.com/repos/UrLab/incubator/events","assignees_url":"https://api.github.com/repos/UrLab/incubator/assignees{/user}","branches_url":"https://api.github.com/repos/UrLab/incubator/branches{/branch}","tags_url":"https://api.github.com/repos/UrLab/incubator/tags","blobs_url":"https://api.github.com/repos/UrLab/incubator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UrLab/incubator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UrLab/incubator/git/refs{/sha}","trees_url":"https://api.github.com/repos/UrLab/incubator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UrLab/incubator/statuses/{sha}","languages_url":"https://api.github.com/repos/UrLab/incubator/languages","stargazers_url":"https://api.github.com/repos/UrLab/incubator/stargazers","contributors_url":"https://api.github.com/repos/UrLab/incubator/contributors","subscribers_url":"https://api.github.com/repos/UrLab/incubator/subscribers","subscription_url":"https://api.github.com/repos/UrLab/incubator/subscription","commits_url":"https://api.github.com/repos/UrLab/incubator/commits{/sha}","git_commits_url":"https://api.github.com/repos/UrLab/incubator/git/commits{/sha}","comments_url":"https://api.github.com/repos/UrLab/incubator/comments{/number}","issue_comment_url":"https://api.github.com/repos/UrLab/incubator/issues/comments{/number}","contents_url":"https://api.github.com/repos/UrLab/incubator/contents/{+path}","compare_url":"https://api.github.com/repos/UrLab/incubator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UrLab/incubator/merges","archive_url":"https://api.github.com/repos/UrLab/incubator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UrLab/incubator/downloads","issues_url":"https://api.github.com/repos/UrLab/incubator/issues{/number}","pulls_url":"https://api.github.com/repos/UrLab/incubator/pulls{/number}","milestones_url":"https://api.github.com/repos/UrLab/incubator/milestones{/number}","notifications_url":"https://api.github.com/repos/UrLab/incubator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UrLab/incubator/labels{/name}","releases_url":"https://api.github.com/repos/UrLab/incubator/releases{/id}","deployments_url":"https://api.github.com/repos/UrLab/incubator/deployments","created_at":"2015-02-26T20:30:49Z","updated_at":"2017-05-04T19:36:50Z","pushed_at":"2017-05-05T11:03:43Z","git_url":"git://github.com/UrLab/incubator.git","ssh_url":"git@github.com:UrLab/incubator.git","clone_url":"https://github.com/UrLab/incubator.git","svn_url":"https://github.com/UrLab/incubator","homepage":"https://urlab.be","size":2973,"stargazers_count":6,"watchers_count":6,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":6,"default_branch":"master"}},"base":{"label":"UrLab:master","ref":"master","sha":"f7bf0b76395989c812e4fa1cf2c7b714b51a5e51","user":{"login":"UrLab","id":1607266,"avatar_url":"https://avatars2.githubusercontent.com/u/1607266?v=3","gravatar_id":"","url":"https://api.github.com/users/UrLab","html_url":"https://github.com/UrLab","followers_url":"https://api.github.com/users/UrLab/followers","following_url":"https://api.github.com/users/UrLab/following{/other_user}","gists_url":"https://api.github.com/users/UrLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UrLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrLab/subscriptions","organizations_url":"https://api.github.com/users/UrLab/orgs","repos_url":"https://api.github.com/users/UrLab/repos","events_url":"https://api.github.com/users/UrLab/events{/privacy}","received_events_url":"https://api.github.com/users/UrLab/received_events","type":"Organization","site_admin":false},"repo":{"id":31387310,"name":"incubator","full_name":"UrLab/incubator","owner":{"login":"UrLab","id":1607266,"avatar_url":"https://avatars2.githubusercontent.com/u/1607266?v=3","gravatar_id":"","url":"https://api.github.com/users/UrLab","html_url":"https://github.com/UrLab","followers_url":"https://api.github.com/users/UrLab/followers","following_url":"https://api.github.com/users/UrLab/following{/other_user}","gists_url":"https://api.github.com/users/UrLab/gists{/gist_id}","starred_url":"https://api.github.com/users/UrLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/UrLab/subscriptions","organizations_url":"https://api.github.com/users/UrLab/orgs","repos_url":"https://api.github.com/users/UrLab/repos","events_url":"https://api.github.com/users/UrLab/events{/privacy}","received_events_url":"https://api.github.com/users/UrLab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/UrLab/incubator","description":"New *all-in-one* django website for UrLab","fork":false,"url":"https://api.github.com/repos/UrLab/incubator","forks_url":"https://api.github.com/repos/UrLab/incubator/forks","keys_url":"https://api.github.com/repos/UrLab/incubator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/UrLab/incubator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/UrLab/incubator/teams","hooks_url":"https://api.github.com/repos/UrLab/incubator/hooks","issue_events_url":"https://api.github.com/repos/UrLab/incubator/issues/events{/number}","events_url":"https://api.github.com/repos/UrLab/incubator/events","assignees_url":"https://api.github.com/repos/UrLab/incubator/assignees{/user}","branches_url":"https://api.github.com/repos/UrLab/incubator/branches{/branch}","tags_url":"https://api.github.com/repos/UrLab/incubator/tags","blobs_url":"https://api.github.com/repos/UrLab/incubator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/UrLab/incubator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/UrLab/incubator/git/refs{/sha}","trees_url":"https://api.github.com/repos/UrLab/incubator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/UrLab/incubator/statuses/{sha}","languages_url":"https://api.github.com/repos/UrLab/incubator/languages","stargazers_url":"https://api.github.com/repos/UrLab/incubator/stargazers","contributors_url":"https://api.github.com/repos/UrLab/incubator/contributors","subscribers_url":"https://api.github.com/repos/UrLab/incubator/subscribers","subscription_url":"https://api.github.com/repos/UrLab/incubator/subscription","commits_url":"https://api.github.com/repos/UrLab/incubator/commits{/sha}","git_commits_url":"https://api.github.com/repos/UrLab/incubator/git/commits{/sha}","comments_url":"https://api.github.com/repos/UrLab/incubator/comments{/number}","issue_comment_url":"https://api.github.com/repos/UrLab/incubator/issues/comments{/number}","contents_url":"https://api.github.com/repos/UrLab/incubator/contents/{+path}","compare_url":"https://api.github.com/repos/UrLab/incubator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/UrLab/incubator/merges","archive_url":"https://api.github.com/repos/UrLab/incubator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/UrLab/incubator/downloads","issues_url":"https://api.github.com/repos/UrLab/incubator/issues{/number}","pulls_url":"https://api.github.com/repos/UrLab/incubator/pulls{/number}","milestones_url":"https://api.github.com/repos/UrLab/incubator/milestones{/number}","notifications_url":"https://api.github.com/repos/UrLab/incubator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/UrLab/incubator/labels{/name}","releases_url":"https://api.github.com/repos/UrLab/incubator/releases{/id}","deployments_url":"https://api.github.com/repos/UrLab/incubator/deployments","created_at":"2015-02-26T20:30:49Z","updated_at":"2017-05-04T19:36:50Z","pushed_at":"2017-05-05T11:03:43Z","git_url":"git://github.com/UrLab/incubator.git","ssh_url":"git@github.com:UrLab/incubator.git","clone_url":"https://github.com/UrLab/incubator.git","svn_url":"https://github.com/UrLab/incubator","homepage":"https://urlab.be","size":2973,"stargazers_count":6,"watchers_count":6,"language":"Jupyter Notebook","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":16,"forks":7,"open_issues":16,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/120"},"html":{"href":"https://github.com/UrLab/incubator/pull/120"},"issue":{"href":"https://api.github.com/repos/UrLab/incubator/issues/120"},"comments":{"href":"https://api.github.com/repos/UrLab/incubator/issues/120/comments"},"review_comments":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/120/comments"},"review_comment":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/UrLab/incubator/pulls/120/commits"},"statuses":{"href":"https://api.github.com/repos/UrLab/incubator/statuses/16467ff6b85315c8cc76e5c2dd515dd34161397b"}}}}
{"actor":{"display_login":"titouanc"}}