{"action":"created","comment":{"url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/comments/53927518","id":53927518,"diff_hunk":"@@ -1,10 +1,19 @@\n from django.shortcuts import render_to_response\n from system.models import Log\n from django.template import RequestContext\n+from system.controllers.search import search\n \n \n def logView(request):\n-    log_list = Log.objects.all()\n+    keywords = \"\"\n+    if 'keywords' in request.POST:\n+        keywords = request.POST[\"keywords\"]\n+        equipment_list = search(keywords)\n+        log_list = Log.objects.filter(equipment__in=equipment_list\n+                             ).order_by(\"borrowed_date\")","path":"system/controllers/logView.py","position":14,"original_position":14,"commit_id":"cb93d3cc79ac7526650635ea9e67c2d0688e56c1","original_commit_id":"cb93d3cc79ac7526650635ea9e67c2d0688e56c1","user":{"login":"sinshutu","id":7629220,"avatar_url":"https://avatars.githubusercontent.com/u/7629220?v=3","gravatar_id":"","url":"https://api.github.com/users/sinshutu","html_url":"https://github.com/sinshutu","followers_url":"https://api.github.com/users/sinshutu/followers","following_url":"https://api.github.com/users/sinshutu/following{/other_user}","gists_url":"https://api.github.com/users/sinshutu/gists{/gist_id}","starred_url":"https://api.github.com/users/sinshutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinshutu/subscriptions","organizations_url":"https://api.github.com/users/sinshutu/orgs","repos_url":"https://api.github.com/users/sinshutu/repos","events_url":"https://api.github.com/users/sinshutu/events{/privacy}","received_events_url":"https://api.github.com/users/sinshutu/received_events","type":"User","site_admin":false},"body":"__[flake8]__\n* [E124] closing bracket does not match visual indentation","created_at":"2016-02-24T11:47:42Z","updated_at":"2016-02-24T11:47:42Z","html_url":"https://github.com/XMLPro/ManagementSystem/pull/48#discussion_r53927518","pull_request_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/comments/53927518"},"html":{"href":"https://github.com/XMLPro/ManagementSystem/pull/48#discussion_r53927518"},"pull_request":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48","id":60496499,"html_url":"https://github.com/XMLPro/ManagementSystem/pull/48","diff_url":"https://github.com/XMLPro/ManagementSystem/pull/48.diff","patch_url":"https://github.com/XMLPro/ManagementSystem/pull/48.patch","issue_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/48","number":48,"state":"open","locked":false,"title":"Add search function","user":{"login":"sinshutu","id":7629220,"avatar_url":"https://avatars.githubusercontent.com/u/7629220?v=3","gravatar_id":"","url":"https://api.github.com/users/sinshutu","html_url":"https://github.com/sinshutu","followers_url":"https://api.github.com/users/sinshutu/followers","following_url":"https://api.github.com/users/sinshutu/following{/other_user}","gists_url":"https://api.github.com/users/sinshutu/gists{/gist_id}","starred_url":"https://api.github.com/users/sinshutu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sinshutu/subscriptions","organizations_url":"https://api.github.com/users/sinshutu/orgs","repos_url":"https://api.github.com/users/sinshutu/repos","events_url":"https://api.github.com/users/sinshutu/events{/privacy}","received_events_url":"https://api.github.com/users/sinshutu/received_events","type":"User","site_admin":false},"body":"top画面とlog画面での検索処理実装 #26 \r\n\r\n非同期で検索処理の結果を受けとるのをやめ、普通にpostしてページ遷移で結果を受け取るような処理を実装\r\n- keywordsをpostし備品名から文字列の大小判定なしの部分一致で検索\r\n- log画面では、備品リストを基にlogデータから抽出している\r\n\r\n結局触っているテーブルが異なることから、検索のformを同一のものにすることは意味ないかなって感じになってます","created_at":"2016-02-24T11:46:48Z","updated_at":"2016-02-24T11:47:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eb40117bed606922090e7a846f8f48e9f0921ace","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48/commits","review_comments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48/comments","review_comment_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/comments{/number}","comments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/48/comments","statuses_url":"https://api.github.com/repos/XMLPro/ManagementSystem/statuses/cb93d3cc79ac7526650635ea9e67c2d0688e56c1","head":{"label":"XMLPro:add_search_function","ref":"add_search_function","sha":"cb93d3cc79ac7526650635ea9e67c2d0688e56c1","user":{"login":"XMLPro","id":6573415,"avatar_url":"https://avatars.githubusercontent.com/u/6573415?v=3","gravatar_id":"","url":"https://api.github.com/users/XMLPro","html_url":"https://github.com/XMLPro","followers_url":"https://api.github.com/users/XMLPro/followers","following_url":"https://api.github.com/users/XMLPro/following{/other_user}","gists_url":"https://api.github.com/users/XMLPro/gists{/gist_id}","starred_url":"https://api.github.com/users/XMLPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XMLPro/subscriptions","organizations_url":"https://api.github.com/users/XMLPro/orgs","repos_url":"https://api.github.com/users/XMLPro/repos","events_url":"https://api.github.com/users/XMLPro/events{/privacy}","received_events_url":"https://api.github.com/users/XMLPro/received_events","type":"Organization","site_admin":false},"repo":{"id":51062317,"name":"ManagementSystem","full_name":"XMLPro/ManagementSystem","owner":{"login":"XMLPro","id":6573415,"avatar_url":"https://avatars.githubusercontent.com/u/6573415?v=3","gravatar_id":"","url":"https://api.github.com/users/XMLPro","html_url":"https://github.com/XMLPro","followers_url":"https://api.github.com/users/XMLPro/followers","following_url":"https://api.github.com/users/XMLPro/following{/other_user}","gists_url":"https://api.github.com/users/XMLPro/gists{/gist_id}","starred_url":"https://api.github.com/users/XMLPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XMLPro/subscriptions","organizations_url":"https://api.github.com/users/XMLPro/orgs","repos_url":"https://api.github.com/users/XMLPro/repos","events_url":"https://api.github.com/users/XMLPro/events{/privacy}","received_events_url":"https://api.github.com/users/XMLPro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/XMLPro/ManagementSystem","description":"備品を簡単に管理するためのシステム","fork":false,"url":"https://api.github.com/repos/XMLPro/ManagementSystem","forks_url":"https://api.github.com/repos/XMLPro/ManagementSystem/forks","keys_url":"https://api.github.com/repos/XMLPro/ManagementSystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XMLPro/ManagementSystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XMLPro/ManagementSystem/teams","hooks_url":"https://api.github.com/repos/XMLPro/ManagementSystem/hooks","issue_events_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/events{/number}","events_url":"https://api.github.com/repos/XMLPro/ManagementSystem/events","assignees_url":"https://api.github.com/repos/XMLPro/ManagementSystem/assignees{/user}","branches_url":"https://api.github.com/repos/XMLPro/ManagementSystem/branches{/branch}","tags_url":"https://api.github.com/repos/XMLPro/ManagementSystem/tags","blobs_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XMLPro/ManagementSystem/statuses/{sha}","languages_url":"https://api.github.com/repos/XMLPro/ManagementSystem/languages","stargazers_url":"https://api.github.com/repos/XMLPro/ManagementSystem/stargazers","contributors_url":"https://api.github.com/repos/XMLPro/ManagementSystem/contributors","subscribers_url":"https://api.github.com/repos/XMLPro/ManagementSystem/subscribers","subscription_url":"https://api.github.com/repos/XMLPro/ManagementSystem/subscription","commits_url":"https://api.github.com/repos/XMLPro/ManagementSystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/XMLPro/ManagementSystem/contents/{+path}","compare_url":"https://api.github.com/repos/XMLPro/ManagementSystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XMLPro/ManagementSystem/merges","archive_url":"https://api.github.com/repos/XMLPro/ManagementSystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XMLPro/ManagementSystem/downloads","issues_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues{/number}","pulls_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls{/number}","milestones_url":"https://api.github.com/repos/XMLPro/ManagementSystem/milestones{/number}","notifications_url":"https://api.github.com/repos/XMLPro/ManagementSystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XMLPro/ManagementSystem/labels{/name}","releases_url":"https://api.github.com/repos/XMLPro/ManagementSystem/releases{/id}","deployments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/deployments","created_at":"2016-02-04T08:27:32Z","updated_at":"2016-02-09T09:51:29Z","pushed_at":"2016-02-24T11:46:49Z","git_url":"git://github.com/XMLPro/ManagementSystem.git","ssh_url":"git@github.com:XMLPro/ManagementSystem.git","clone_url":"https://github.com/XMLPro/ManagementSystem.git","svn_url":"https://github.com/XMLPro/ManagementSystem","homepage":null,"size":8129,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"XMLPro:master","ref":"master","sha":"b52661810095c579fa3972958e7718228074e3be","user":{"login":"XMLPro","id":6573415,"avatar_url":"https://avatars.githubusercontent.com/u/6573415?v=3","gravatar_id":"","url":"https://api.github.com/users/XMLPro","html_url":"https://github.com/XMLPro","followers_url":"https://api.github.com/users/XMLPro/followers","following_url":"https://api.github.com/users/XMLPro/following{/other_user}","gists_url":"https://api.github.com/users/XMLPro/gists{/gist_id}","starred_url":"https://api.github.com/users/XMLPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XMLPro/subscriptions","organizations_url":"https://api.github.com/users/XMLPro/orgs","repos_url":"https://api.github.com/users/XMLPro/repos","events_url":"https://api.github.com/users/XMLPro/events{/privacy}","received_events_url":"https://api.github.com/users/XMLPro/received_events","type":"Organization","site_admin":false},"repo":{"id":51062317,"name":"ManagementSystem","full_name":"XMLPro/ManagementSystem","owner":{"login":"XMLPro","id":6573415,"avatar_url":"https://avatars.githubusercontent.com/u/6573415?v=3","gravatar_id":"","url":"https://api.github.com/users/XMLPro","html_url":"https://github.com/XMLPro","followers_url":"https://api.github.com/users/XMLPro/followers","following_url":"https://api.github.com/users/XMLPro/following{/other_user}","gists_url":"https://api.github.com/users/XMLPro/gists{/gist_id}","starred_url":"https://api.github.com/users/XMLPro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XMLPro/subscriptions","organizations_url":"https://api.github.com/users/XMLPro/orgs","repos_url":"https://api.github.com/users/XMLPro/repos","events_url":"https://api.github.com/users/XMLPro/events{/privacy}","received_events_url":"https://api.github.com/users/XMLPro/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/XMLPro/ManagementSystem","description":"備品を簡単に管理するためのシステム","fork":false,"url":"https://api.github.com/repos/XMLPro/ManagementSystem","forks_url":"https://api.github.com/repos/XMLPro/ManagementSystem/forks","keys_url":"https://api.github.com/repos/XMLPro/ManagementSystem/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XMLPro/ManagementSystem/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XMLPro/ManagementSystem/teams","hooks_url":"https://api.github.com/repos/XMLPro/ManagementSystem/hooks","issue_events_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/events{/number}","events_url":"https://api.github.com/repos/XMLPro/ManagementSystem/events","assignees_url":"https://api.github.com/repos/XMLPro/ManagementSystem/assignees{/user}","branches_url":"https://api.github.com/repos/XMLPro/ManagementSystem/branches{/branch}","tags_url":"https://api.github.com/repos/XMLPro/ManagementSystem/tags","blobs_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/refs{/sha}","trees_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XMLPro/ManagementSystem/statuses/{sha}","languages_url":"https://api.github.com/repos/XMLPro/ManagementSystem/languages","stargazers_url":"https://api.github.com/repos/XMLPro/ManagementSystem/stargazers","contributors_url":"https://api.github.com/repos/XMLPro/ManagementSystem/contributors","subscribers_url":"https://api.github.com/repos/XMLPro/ManagementSystem/subscribers","subscription_url":"https://api.github.com/repos/XMLPro/ManagementSystem/subscription","commits_url":"https://api.github.com/repos/XMLPro/ManagementSystem/commits{/sha}","git_commits_url":"https://api.github.com/repos/XMLPro/ManagementSystem/git/commits{/sha}","comments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/comments{/number}","issue_comment_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/comments{/number}","contents_url":"https://api.github.com/repos/XMLPro/ManagementSystem/contents/{+path}","compare_url":"https://api.github.com/repos/XMLPro/ManagementSystem/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XMLPro/ManagementSystem/merges","archive_url":"https://api.github.com/repos/XMLPro/ManagementSystem/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XMLPro/ManagementSystem/downloads","issues_url":"https://api.github.com/repos/XMLPro/ManagementSystem/issues{/number}","pulls_url":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls{/number}","milestones_url":"https://api.github.com/repos/XMLPro/ManagementSystem/milestones{/number}","notifications_url":"https://api.github.com/repos/XMLPro/ManagementSystem/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XMLPro/ManagementSystem/labels{/name}","releases_url":"https://api.github.com/repos/XMLPro/ManagementSystem/releases{/id}","deployments_url":"https://api.github.com/repos/XMLPro/ManagementSystem/deployments","created_at":"2016-02-04T08:27:32Z","updated_at":"2016-02-09T09:51:29Z","pushed_at":"2016-02-24T11:46:49Z","git_url":"git://github.com/XMLPro/ManagementSystem.git","ssh_url":"git@github.com:XMLPro/ManagementSystem.git","clone_url":"https://github.com/XMLPro/ManagementSystem.git","svn_url":"https://github.com/XMLPro/ManagementSystem","homepage":null,"size":8129,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48"},"html":{"href":"https://github.com/XMLPro/ManagementSystem/pull/48"},"issue":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/48"},"comments":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/XMLPro/ManagementSystem/statuses/cb93d3cc79ac7526650635ea9e67c2d0688e56c1"}}}}