GitHub PullRequestReviewCommentEvent at 2014-04-01 21:47:50
Repository: corporate
Actor: Neamar
Payload: {"comment":{"url":"https://api.github.com/repos/Neamar/corporate/pulls/comments/11183851","id":11183851,"diff_hunk":"@@ -43,6 +43,23 @@ def add_newsfeed(self, **kwargs):\n \t\tn = Newsfeed.objects.create(turn=self.current_turn, game=self, **kwargs)\n \t\treturn n\n \n+\tdef add_newsfeed_from_template(self, category, path, **kwargs):\n+\t\t\"\"\"\n+\t\tConstruct the content of a newsfeed, avoiding the messages already diplayed within the same game.\n+\t\t\"\"\"\n+\t\tnb_already_displayed_messages=Newsfeed.objects.filter(category=category, game=self,path=path).count() #requête pour compter le nombre de newsfeed qui ont déjà le même chemin sur la game\n+\t\ttry:\n+\t\t\tfichier=open(settings.BASE_DIR+'/datas/newsfeeds/'+category+'/'+path+'/'+unicode(nb_already_displayed_messages+1)+'.md')","path":"engine/models.py","position":10,"original_position":10,"commit_id":"ddb5e19be419a03727b7f18100799fadf7d6a5ad","original_commit_id":"ddb5e19be419a03727b7f18100799fadf7d6a5ad","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?","gravatar_id":"1bd44880100d5a4ce780441e4b54ddfe","url":"https://api.github.com/users/Neamar","html_url":"https://github.com/Neamar","followers_url":"https://api.github.com/users/Neamar/followers","following_url":"https://api.github.com/users/Neamar/following{/other_user}","gists_url":"https://api.github.com/users/Neamar/gists{/gist_id}","starred_url":"https://api.github.com/users/Neamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neamar/subscriptions","organizations_url":"https://api.github.com/users/Neamar/orgs","repos_url":"https://api.github.com/users/Neamar/repos","events_url":"https://api.github.com/users/Neamar/events{/privacy}","received_events_url":"https://api.github.com/users/Neamar/received_events","type":"User","site_admin":false},"body":"* E225 missing whitespace around operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n* E226 missing whitespace around arithmetic operator\n","created_at":"2014-04-01T21:47:50Z","updated_at":"2014-04-01T21:47:50Z","html_url":"https://github.com/Neamar/corporate/pull/61#discussion_r11183851","pull_request_url":"https://api.github.com/repos/Neamar/corporate/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/comments/11183851"},"html":{"href":"https://github.com/Neamar/corporate/pull/61#discussion_r11183851"},"pull_request":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/61"}}}}