{"action":"created","comment":{"url":"https://api.github.com/repos/kn9ts/biblicol/pulls/comments/54530367","id":54530367,"diff_hunk":"@@ -183,41 +230,104 @@ def get_multiple_verses(search_param):\n             )\n \n             # Join up all the verses into a sentence\n-            sentense = Helper.buildSentense(verses, book_requested)\n-            return sentense\n+            # sentense = Helper.build_sentense(verses, book_requested)\n+            # return sentense\n+            return verses\n         else:\n-            return None\n+            return []\n \n     @staticmethod\n     def get_chapter(search_param):\n+        \"\"\"\n+        Gets the chapter of a specified bookname\n+        eg. John 3\n+        \"\"\"\n         book_requested = Helper.get_the_book_requested(\n             search_param,\n             Search.book_starts_with_no\n         )\n         book_exists = Helper.is_book_in_Bible(book_requested['book'])\n \n-        if (True if book_exists else False):\n+        if book_exists:\n             verses_of_the_chapter = Bible.objects.filter(\n                 bookname=book_requested['book'],\n                 chapter=book_requested['chapter']\n             )\n \n-            sentense = Helper.build_sentence(verses_of_the_chapter, book_requested)\n-            return sentense\n-            # pass\n+            # sentense = Helper.build_sentence(verses_of_the_chapter, book_requested)\n+            # return sentense\n+            return verses_of_the_chapter\n+        else:\n+            return []\n \n     @staticmethod\n-    def search_in_book():\n-        pass\n+    def search_in_specific_book(search_param):\n+        \"\"\"\n+        Expect search_param to be something like \"genesis:hope or love\n+        Meaning: find \"hope\" or \"love\" text content in genesis\n+        \"\"\"\n+        param = [x.strip() for x in search_param.split(':')]\n+        book_to_search_in = param[0]\n+        book_requested = Helper.get_the_book_requested(\n+            book_to_search_in,\n+            Search.book_starts_with_no\n+        )\n+        book_exists = Helper.is_book_in_Bible(book_requested['book'])\n+\n+        # use the valid bookname if it exists\n+        if book_exists:\n+            search_string = ' '.join([x for x in param\n+                                      if x is not book_to_search_in])\n+\n+            # first run a simple(a bit complex) search\n+            print('search_info: ' + search_string)\n+            results = Search.complex_search(search_string, book_requested['book'])\n+            if len(results) is not 0:\n+                return results\n+\n+        # if no results are found, an empty list will be returned\n+        return []\n \n     @staticmethod\n-    def my_simple_duckduckgo_search():\n-        pass\n+    def my_simple_bible_search(search_param, book=None, simple_search=False, start=0, limit=30):","path":"biblicol/controllers/search.py","position":339,"original_position":339,"commit_id":"e4fa6c95927be1c2083b42f2a07c9324cb334f8f","original_commit_id":"e4fa6c95927be1c2083b42f2a07c9324cb334f8f","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"line too long (96 > 79 characters)","created_at":"2016-03-01T07:20:33Z","updated_at":"2016-03-01T07:20:33Z","html_url":"https://github.com/kn9ts/biblicol/pull/1#discussion_r54530367","pull_request_url":"https://api.github.com/repos/kn9ts/biblicol/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/kn9ts/biblicol/pulls/comments/54530367"},"html":{"href":"https://github.com/kn9ts/biblicol/pull/1#discussion_r54530367"},"pull_request":{"href":"https://api.github.com/repos/kn9ts/biblicol/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/kn9ts/biblicol/pulls/1","id":61202859,"html_url":"https://github.com/kn9ts/biblicol/pull/1","diff_url":"https://github.com/kn9ts/biblicol/pull/1.diff","patch_url":"https://github.com/kn9ts/biblicol/pull/1.patch","issue_url":"https://api.github.com/repos/kn9ts/biblicol/issues/1","number":1,"state":"open","locked":false,"title":"HoundCI pull request check before merging Development to Master","user":{"login":"kn9ts","id":1999708,"avatar_url":"https://avatars.githubusercontent.com/u/1999708?v=3","gravatar_id":"","url":"https://api.github.com/users/kn9ts","html_url":"https://github.com/kn9ts","followers_url":"https://api.github.com/users/kn9ts/followers","following_url":"https://api.github.com/users/kn9ts/following{/other_user}","gists_url":"https://api.github.com/users/kn9ts/gists{/gist_id}","starred_url":"https://api.github.com/users/kn9ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kn9ts/subscriptions","organizations_url":"https://api.github.com/users/kn9ts/orgs","repos_url":"https://api.github.com/users/kn9ts/repos","events_url":"https://api.github.com/users/kn9ts/events{/privacy}","received_events_url":"https://api.github.com/users/kn9ts/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-01T07:20:16Z","updated_at":"2016-03-01T07:20:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3fb249da09d9e982320f4b33a2203cdfab72fb02","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/kn9ts/biblicol/pulls/1/commits","review_comments_url":"https://api.github.com/repos/kn9ts/biblicol/pulls/1/comments","review_comment_url":"https://api.github.com/repos/kn9ts/biblicol/pulls/comments{/number}","comments_url":"https://api.github.com/repos/kn9ts/biblicol/issues/1/comments","statuses_url":"https://api.github.com/repos/kn9ts/biblicol/statuses/e4fa6c95927be1c2083b42f2a07c9324cb334f8f","head":{"label":"kn9ts:development","ref":"development","sha":"e4fa6c95927be1c2083b42f2a07c9324cb334f8f","user":{"login":"kn9ts","id":1999708,"avatar_url":"https://avatars.githubusercontent.com/u/1999708?v=3","gravatar_id":"","url":"https://api.github.com/users/kn9ts","html_url":"https://github.com/kn9ts","followers_url":"https://api.github.com/users/kn9ts/followers","following_url":"https://api.github.com/users/kn9ts/following{/other_user}","gists_url":"https://api.github.com/users/kn9ts/gists{/gist_id}","starred_url":"https://api.github.com/users/kn9ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kn9ts/subscriptions","organizations_url":"https://api.github.com/users/kn9ts/orgs","repos_url":"https://api.github.com/users/kn9ts/repos","events_url":"https://api.github.com/users/kn9ts/events{/privacy}","received_events_url":"https://api.github.com/users/kn9ts/received_events","type":"User","site_admin":false},"repo":{"id":51535376,"name":"biblicol","full_name":"kn9ts/biblicol","owner":{"login":"kn9ts","id":1999708,"avatar_url":"https://avatars.githubusercontent.com/u/1999708?v=3","gravatar_id":"","url":"https://api.github.com/users/kn9ts","html_url":"https://github.com/kn9ts","followers_url":"https://api.github.com/users/kn9ts/followers","following_url":"https://api.github.com/users/kn9ts/following{/other_user}","gists_url":"https://api.github.com/users/kn9ts/gists{/gist_id}","starred_url":"https://api.github.com/users/kn9ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kn9ts/subscriptions","organizations_url":"https://api.github.com/users/kn9ts/orgs","repos_url":"https://api.github.com/users/kn9ts/repos","events_url":"https://api.github.com/users/kn9ts/events{/privacy}","received_events_url":"https://api.github.com/users/kn9ts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kn9ts/biblicol","description":null,"fork":false,"url":"https://api.github.com/repos/kn9ts/biblicol","forks_url":"https://api.github.com/repos/kn9ts/biblicol/forks","keys_url":"https://api.github.com/repos/kn9ts/biblicol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kn9ts/biblicol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kn9ts/biblicol/teams","hooks_url":"https://api.github.com/repos/kn9ts/biblicol/hooks","issue_events_url":"https://api.github.com/repos/kn9ts/biblicol/issues/events{/number}","events_url":"https://api.github.com/repos/kn9ts/biblicol/events","assignees_url":"https://api.github.com/repos/kn9ts/biblicol/assignees{/user}","branches_url":"https://api.github.com/repos/kn9ts/biblicol/branches{/branch}","tags_url":"https://api.github.com/repos/kn9ts/biblicol/tags","blobs_url":"https://api.github.com/repos/kn9ts/biblicol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kn9ts/biblicol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kn9ts/biblicol/git/refs{/sha}","trees_url":"https://api.github.com/repos/kn9ts/biblicol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kn9ts/biblicol/statuses/{sha}","languages_url":"https://api.github.com/repos/kn9ts/biblicol/languages","stargazers_url":"https://api.github.com/repos/kn9ts/biblicol/stargazers","contributors_url":"https://api.github.com/repos/kn9ts/biblicol/contributors","subscribers_url":"https://api.github.com/repos/kn9ts/biblicol/subscribers","subscription_url":"https://api.github.com/repos/kn9ts/biblicol/subscription","commits_url":"https://api.github.com/repos/kn9ts/biblicol/commits{/sha}","git_commits_url":"https://api.github.com/repos/kn9ts/biblicol/git/commits{/sha}","comments_url":"https://api.github.com/repos/kn9ts/biblicol/comments{/number}","issue_comment_url":"https://api.github.com/repos/kn9ts/biblicol/issues/comments{/number}","contents_url":"https://api.github.com/repos/kn9ts/biblicol/contents/{+path}","compare_url":"https://api.github.com/repos/kn9ts/biblicol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kn9ts/biblicol/merges","archive_url":"https://api.github.com/repos/kn9ts/biblicol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kn9ts/biblicol/downloads","issues_url":"https://api.github.com/repos/kn9ts/biblicol/issues{/number}","pulls_url":"https://api.github.com/repos/kn9ts/biblicol/pulls{/number}","milestones_url":"https://api.github.com/repos/kn9ts/biblicol/milestones{/number}","notifications_url":"https://api.github.com/repos/kn9ts/biblicol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kn9ts/biblicol/labels{/name}","releases_url":"https://api.github.com/repos/kn9ts/biblicol/releases{/id}","deployments_url":"https://api.github.com/repos/kn9ts/biblicol/deployments","created_at":"2016-02-11T18:12:16Z","updated_at":"2016-02-11T18:29:24Z","pushed_at":"2016-03-01T07:20:17Z","git_url":"git://github.com/kn9ts/biblicol.git","ssh_url":"git@github.com:kn9ts/biblicol.git","clone_url":"https://github.com/kn9ts/biblicol.git","svn_url":"https://github.com/kn9ts/biblicol","homepage":null,"size":1870,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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"}},"base":{"label":"kn9ts:master","ref":"master","sha":"5d9f194f5b7ecf41bfe179b5428a15782148a31f","user":{"login":"kn9ts","id":1999708,"avatar_url":"https://avatars.githubusercontent.com/u/1999708?v=3","gravatar_id":"","url":"https://api.github.com/users/kn9ts","html_url":"https://github.com/kn9ts","followers_url":"https://api.github.com/users/kn9ts/followers","following_url":"https://api.github.com/users/kn9ts/following{/other_user}","gists_url":"https://api.github.com/users/kn9ts/gists{/gist_id}","starred_url":"https://api.github.com/users/kn9ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kn9ts/subscriptions","organizations_url":"https://api.github.com/users/kn9ts/orgs","repos_url":"https://api.github.com/users/kn9ts/repos","events_url":"https://api.github.com/users/kn9ts/events{/privacy}","received_events_url":"https://api.github.com/users/kn9ts/received_events","type":"User","site_admin":false},"repo":{"id":51535376,"name":"biblicol","full_name":"kn9ts/biblicol","owner":{"login":"kn9ts","id":1999708,"avatar_url":"https://avatars.githubusercontent.com/u/1999708?v=3","gravatar_id":"","url":"https://api.github.com/users/kn9ts","html_url":"https://github.com/kn9ts","followers_url":"https://api.github.com/users/kn9ts/followers","following_url":"https://api.github.com/users/kn9ts/following{/other_user}","gists_url":"https://api.github.com/users/kn9ts/gists{/gist_id}","starred_url":"https://api.github.com/users/kn9ts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kn9ts/subscriptions","organizations_url":"https://api.github.com/users/kn9ts/orgs","repos_url":"https://api.github.com/users/kn9ts/repos","events_url":"https://api.github.com/users/kn9ts/events{/privacy}","received_events_url":"https://api.github.com/users/kn9ts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kn9ts/biblicol","description":null,"fork":false,"url":"https://api.github.com/repos/kn9ts/biblicol","forks_url":"https://api.github.com/repos/kn9ts/biblicol/forks","keys_url":"https://api.github.com/repos/kn9ts/biblicol/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kn9ts/biblicol/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kn9ts/biblicol/teams","hooks_url":"https://api.github.com/repos/kn9ts/biblicol/hooks","issue_events_url":"https://api.github.com/repos/kn9ts/biblicol/issues/events{/number}","events_url":"https://api.github.com/repos/kn9ts/biblicol/events","assignees_url":"https://api.github.com/repos/kn9ts/biblicol/assignees{/user}","branches_url":"https://api.github.com/repos/kn9ts/biblicol/branches{/branch}","tags_url":"https://api.github.com/repos/kn9ts/biblicol/tags","blobs_url":"https://api.github.com/repos/kn9ts/biblicol/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kn9ts/biblicol/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kn9ts/biblicol/git/refs{/sha}","trees_url":"https://api.github.com/repos/kn9ts/biblicol/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kn9ts/biblicol/statuses/{sha}","languages_url":"https://api.github.com/repos/kn9ts/biblicol/languages","stargazers_url":"https://api.github.com/repos/kn9ts/biblicol/stargazers","contributors_url":"https://api.github.com/repos/kn9ts/biblicol/contributors","subscribers_url":"https://api.github.com/repos/kn9ts/biblicol/subscribers","subscription_url":"https://api.github.com/repos/kn9ts/biblicol/subscription","commits_url":"https://api.github.com/repos/kn9ts/biblicol/commits{/sha}","git_commits_url":"https://api.github.com/repos/kn9ts/biblicol/git/commits{/sha}","comments_url":"https://api.github.com/repos/kn9ts/biblicol/comments{/number}","issue_comment_url":"https://api.github.com/repos/kn9ts/biblicol/issues/comments{/number}","contents_url":"https://api.github.com/repos/kn9ts/biblicol/contents/{+path}","compare_url":"https://api.github.com/repos/kn9ts/biblicol/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kn9ts/biblicol/merges","archive_url":"https://api.github.com/repos/kn9ts/biblicol/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kn9ts/biblicol/downloads","issues_url":"https://api.github.com/repos/kn9ts/biblicol/issues{/number}","pulls_url":"https://api.github.com/repos/kn9ts/biblicol/pulls{/number}","milestones_url":"https://api.github.com/repos/kn9ts/biblicol/milestones{/number}","notifications_url":"https://api.github.com/repos/kn9ts/biblicol/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kn9ts/biblicol/labels{/name}","releases_url":"https://api.github.com/repos/kn9ts/biblicol/releases{/id}","deployments_url":"https://api.github.com/repos/kn9ts/biblicol/deployments","created_at":"2016-02-11T18:12:16Z","updated_at":"2016-02-11T18:29:24Z","pushed_at":"2016-03-01T07:20:17Z","git_url":"git://github.com/kn9ts/biblicol.git","ssh_url":"git@github.com:kn9ts/biblicol.git","clone_url":"https://github.com/kn9ts/biblicol.git","svn_url":"https://github.com/kn9ts/biblicol","homepage":null,"size":1870,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"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/kn9ts/biblicol/pulls/1"},"html":{"href":"https://github.com/kn9ts/biblicol/pull/1"},"issue":{"href":"https://api.github.com/repos/kn9ts/biblicol/issues/1"},"comments":{"href":"https://api.github.com/repos/kn9ts/biblicol/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/kn9ts/biblicol/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/kn9ts/biblicol/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/kn9ts/biblicol/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/kn9ts/biblicol/statuses/e4fa6c95927be1c2083b42f2a07c9324cb334f8f"}}}}