{"action":"created","issue":{"url":"https://api.github.com/repos/Loilo/Fuse/issues/6","repository_url":"https://api.github.com/repos/Loilo/Fuse","labels_url":"https://api.github.com/repos/Loilo/Fuse/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/Loilo/Fuse/issues/6/comments","events_url":"https://api.github.com/repos/Loilo/Fuse/issues/6/events","html_url":"https://github.com/Loilo/Fuse/issues/6","id":310142816,"number":6,"title":"Error that needs to be fixed ","user":{"login":"nakbill","id":6309593,"avatar_url":"https://avatars3.githubusercontent.com/u/6309593?v=4","gravatar_id":"","url":"https://api.github.com/users/nakbill","html_url":"https://github.com/nakbill","followers_url":"https://api.github.com/users/nakbill/followers","following_url":"https://api.github.com/users/nakbill/following{/other_user}","gists_url":"https://api.github.com/users/nakbill/gists{/gist_id}","starred_url":"https://api.github.com/users/nakbill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nakbill/subscriptions","organizations_url":"https://api.github.com/users/nakbill/orgs","repos_url":"https://api.github.com/users/nakbill/repos","events_url":"https://api.github.com/users/nakbill/events{/privacy}","received_events_url":"https://api.github.com/users/nakbill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-30T18:59:57Z","updated_at":"2018-03-30T19:41:20Z","closed_at":null,"author_association":"NONE","body":"Hi\r\nI am using your project that it is very useful but i noticed a problem that needs to be fixed.\r\nIn Fuse.php file at line 226 your code is\r\n$averageScore = $averageScore / $scoresLen;\r\n\r\nI noticed that sometimes the $scoresLen in my project is 0 so the the action of division prints out an error\r\nI suggest adding the following in order to avoid this error\r\nif($scoresLen !=0){\r\n$averageScore = $averageScore / $scoresLen;\r\n}\r\nBest Regards"},"comment":{"url":"https://api.github.com/repos/Loilo/Fuse/issues/comments/377605657","html_url":"https://github.com/Loilo/Fuse/issues/6#issuecomment-377605657","issue_url":"https://api.github.com/repos/Loilo/Fuse/issues/6","id":377605657,"user":{"login":"Loilo","id":1922624,"avatar_url":"https://avatars3.githubusercontent.com/u/1922624?v=4","gravatar_id":"","url":"https://api.github.com/users/Loilo","html_url":"https://github.com/Loilo","followers_url":"https://api.github.com/users/Loilo/followers","following_url":"https://api.github.com/users/Loilo/following{/other_user}","gists_url":"https://api.github.com/users/Loilo/gists{/gist_id}","starred_url":"https://api.github.com/users/Loilo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loilo/subscriptions","organizations_url":"https://api.github.com/users/Loilo/orgs","repos_url":"https://api.github.com/users/Loilo/repos","events_url":"https://api.github.com/users/Loilo/events{/privacy}","received_events_url":"https://api.github.com/users/Loilo/received_events","type":"User","site_admin":false},"created_at":"2018-03-30T19:41:20Z","updated_at":"2018-03-30T19:41:20Z","author_association":"OWNER","body":"Hey, thanks for the bug report.\r\n\r\nWould you mind to provide a sample data set + search query where this happens? That would be pretty helpful since it then should happen in [Fuse.js](http://fusejs.io/) as well and I'd report it there."}}
{"actor":{"display_login":"Loilo"}}