{"action":"created","comment":{"url":"https://api.github.com/repos/Neamar/corporate/pulls/comments/27951017","id":27951017,"diff_hunk":"@@ -21,13 +23,15 @@ def run(self, game):\n \t\tif len(corpos) == 0:\n \t\t\treturn\n \n-\t\tcorpos[0].update_assets(1, category=AssetDelta.INVISIBLE_HAND)\n-\t\tcontent = u'La main du marché favorise le marché historique de la corpo %s.' % (corpos[0].base_corporation.name)\n-\t\tgame.add_newsfeed(category=Newsfeed.ECONOMY, content=content, status=Newsfeed.PRIVATE, market=corpos[0].historic_market, corporations=[corpos[0]])\n+\t\tmarket = random.choice(corpos[0].markets)","path":"engine_modules/invisible_hand/tasks.py","position":14,"original_position":14,"commit_id":"26f37a5fa7ab9997f73bc69fc172ee5b9c04bb4b","original_commit_id":"26f37a5fa7ab9997f73bc69fc172ee5b9c04bb4b","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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":"i think you should add a random_market property on corporation, to use here and with the effect function","created_at":"2015-04-08T08:24:03Z","updated_at":"2015-04-08T08:24:03Z","html_url":"https://github.com/Neamar/corporate/pull/117#discussion_r27951017","pull_request_url":"https://api.github.com/repos/Neamar/corporate/pulls/117","_links":{"self":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/comments/27951017"},"html":{"href":"https://github.com/Neamar/corporate/pull/117#discussion_r27951017"},"pull_request":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/117"}}},"pull_request":{"url":"https://api.github.com/repos/Neamar/corporate/pulls/117","id":32804210,"html_url":"https://github.com/Neamar/corporate/pull/117","diff_url":"https://github.com/Neamar/corporate/pull/117.diff","patch_url":"https://github.com/Neamar/corporate/pull/117.patch","issue_url":"https://api.github.com/repos/Neamar/corporate/issues/117","number":117,"state":"open","locked":false,"title":"Removed \"Hisoric Market\" pretty much everywhere.","user":{"login":"your-mom-noob","id":4883483,"avatar_url":"https://avatars.githubusercontent.com/u/4883483?v=3","gravatar_id":"","url":"https://api.github.com/users/your-mom-noob","html_url":"https://github.com/your-mom-noob","followers_url":"https://api.github.com/users/your-mom-noob/followers","following_url":"https://api.github.com/users/your-mom-noob/following{/other_user}","gists_url":"https://api.github.com/users/your-mom-noob/gists{/gist_id}","starred_url":"https://api.github.com/users/your-mom-noob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/your-mom-noob/subscriptions","organizations_url":"https://api.github.com/users/your-mom-noob/orgs","repos_url":"https://api.github.com/users/your-mom-noob/repos","events_url":"https://api.github.com/users/your-mom-noob/events{/privacy}","received_events_url":"https://api.github.com/users/your-mom-noob/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-07T20:50:05Z","updated_at":"2015-04-08T08:24:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"455db7a296af1903b36cc3bb92cfb0cf97fcf794","assignee":{"login":"your-mom-noob","id":4883483,"avatar_url":"https://avatars.githubusercontent.com/u/4883483?v=3","gravatar_id":"","url":"https://api.github.com/users/your-mom-noob","html_url":"https://github.com/your-mom-noob","followers_url":"https://api.github.com/users/your-mom-noob/followers","following_url":"https://api.github.com/users/your-mom-noob/following{/other_user}","gists_url":"https://api.github.com/users/your-mom-noob/gists{/gist_id}","starred_url":"https://api.github.com/users/your-mom-noob/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/your-mom-noob/subscriptions","organizations_url":"https://api.github.com/users/your-mom-noob/orgs","repos_url":"https://api.github.com/users/your-mom-noob/repos","events_url":"https://api.github.com/users/your-mom-noob/events{/privacy}","received_events_url":"https://api.github.com/users/your-mom-noob/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Neamar/corporate/milestones/1","html_url":"https://github.com/Neamar/corporate/milestones/v2","labels_url":"https://api.github.com/repos/Neamar/corporate/milestones/1/labels","id":1007474,"number":1,"title":"v2","description":"Corporate Game, v2","creator":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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},"open_issues":9,"closed_issues":8,"state":"open","created_at":"2015-03-05T13:13:12Z","updated_at":"2015-04-08T08:11:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/Neamar/corporate/pulls/117/commits","review_comments_url":"https://api.github.com/repos/Neamar/corporate/pulls/117/comments","review_comment_url":"https://api.github.com/repos/Neamar/corporate/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Neamar/corporate/issues/117/comments","statuses_url":"https://api.github.com/repos/Neamar/corporate/statuses/26f37a5fa7ab9997f73bc69fc172ee5b9c04bb4b","head":{"label":"Neamar:DInc","ref":"DInc","sha":"26f37a5fa7ab9997f73bc69fc172ee5b9c04bb4b","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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},"repo":{"id":15422111,"name":"corporate","full_name":"Neamar/corporate","owner":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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},"private":false,"html_url":"https://github.com/Neamar/corporate","description":"It's not a game, it's The Game.","fork":false,"url":"https://api.github.com/repos/Neamar/corporate","forks_url":"https://api.github.com/repos/Neamar/corporate/forks","keys_url":"https://api.github.com/repos/Neamar/corporate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neamar/corporate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neamar/corporate/teams","hooks_url":"https://api.github.com/repos/Neamar/corporate/hooks","issue_events_url":"https://api.github.com/repos/Neamar/corporate/issues/events{/number}","events_url":"https://api.github.com/repos/Neamar/corporate/events","assignees_url":"https://api.github.com/repos/Neamar/corporate/assignees{/user}","branches_url":"https://api.github.com/repos/Neamar/corporate/branches{/branch}","tags_url":"https://api.github.com/repos/Neamar/corporate/tags","blobs_url":"https://api.github.com/repos/Neamar/corporate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neamar/corporate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neamar/corporate/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neamar/corporate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neamar/corporate/statuses/{sha}","languages_url":"https://api.github.com/repos/Neamar/corporate/languages","stargazers_url":"https://api.github.com/repos/Neamar/corporate/stargazers","contributors_url":"https://api.github.com/repos/Neamar/corporate/contributors","subscribers_url":"https://api.github.com/repos/Neamar/corporate/subscribers","subscription_url":"https://api.github.com/repos/Neamar/corporate/subscription","commits_url":"https://api.github.com/repos/Neamar/corporate/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neamar/corporate/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neamar/corporate/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neamar/corporate/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neamar/corporate/contents/{+path}","compare_url":"https://api.github.com/repos/Neamar/corporate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neamar/corporate/merges","archive_url":"https://api.github.com/repos/Neamar/corporate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neamar/corporate/downloads","issues_url":"https://api.github.com/repos/Neamar/corporate/issues{/number}","pulls_url":"https://api.github.com/repos/Neamar/corporate/pulls{/number}","milestones_url":"https://api.github.com/repos/Neamar/corporate/milestones{/number}","notifications_url":"https://api.github.com/repos/Neamar/corporate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neamar/corporate/labels{/name}","releases_url":"https://api.github.com/repos/Neamar/corporate/releases{/id}","created_at":"2013-12-24T16:57:52Z","updated_at":"2015-03-24T23:29:01Z","pushed_at":"2015-04-07T21:22:35Z","git_url":"git://github.com/Neamar/corporate.git","ssh_url":"git@github.com:Neamar/corporate.git","clone_url":"https://github.com/Neamar/corporate.git","svn_url":"https://github.com/Neamar/corporate","homepage":null,"size":6439,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":5,"default_branch":"master"}},"base":{"label":"Neamar:v2","ref":"v2","sha":"67a4c9e9f752b9e37bc90e150dada0e7ad3fb974","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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},"repo":{"id":15422111,"name":"corporate","full_name":"Neamar/corporate","owner":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?v=3","gravatar_id":"","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},"private":false,"html_url":"https://github.com/Neamar/corporate","description":"It's not a game, it's The Game.","fork":false,"url":"https://api.github.com/repos/Neamar/corporate","forks_url":"https://api.github.com/repos/Neamar/corporate/forks","keys_url":"https://api.github.com/repos/Neamar/corporate/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Neamar/corporate/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Neamar/corporate/teams","hooks_url":"https://api.github.com/repos/Neamar/corporate/hooks","issue_events_url":"https://api.github.com/repos/Neamar/corporate/issues/events{/number}","events_url":"https://api.github.com/repos/Neamar/corporate/events","assignees_url":"https://api.github.com/repos/Neamar/corporate/assignees{/user}","branches_url":"https://api.github.com/repos/Neamar/corporate/branches{/branch}","tags_url":"https://api.github.com/repos/Neamar/corporate/tags","blobs_url":"https://api.github.com/repos/Neamar/corporate/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Neamar/corporate/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Neamar/corporate/git/refs{/sha}","trees_url":"https://api.github.com/repos/Neamar/corporate/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Neamar/corporate/statuses/{sha}","languages_url":"https://api.github.com/repos/Neamar/corporate/languages","stargazers_url":"https://api.github.com/repos/Neamar/corporate/stargazers","contributors_url":"https://api.github.com/repos/Neamar/corporate/contributors","subscribers_url":"https://api.github.com/repos/Neamar/corporate/subscribers","subscription_url":"https://api.github.com/repos/Neamar/corporate/subscription","commits_url":"https://api.github.com/repos/Neamar/corporate/commits{/sha}","git_commits_url":"https://api.github.com/repos/Neamar/corporate/git/commits{/sha}","comments_url":"https://api.github.com/repos/Neamar/corporate/comments{/number}","issue_comment_url":"https://api.github.com/repos/Neamar/corporate/issues/comments{/number}","contents_url":"https://api.github.com/repos/Neamar/corporate/contents/{+path}","compare_url":"https://api.github.com/repos/Neamar/corporate/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Neamar/corporate/merges","archive_url":"https://api.github.com/repos/Neamar/corporate/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Neamar/corporate/downloads","issues_url":"https://api.github.com/repos/Neamar/corporate/issues{/number}","pulls_url":"https://api.github.com/repos/Neamar/corporate/pulls{/number}","milestones_url":"https://api.github.com/repos/Neamar/corporate/milestones{/number}","notifications_url":"https://api.github.com/repos/Neamar/corporate/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Neamar/corporate/labels{/name}","releases_url":"https://api.github.com/repos/Neamar/corporate/releases{/id}","created_at":"2013-12-24T16:57:52Z","updated_at":"2015-03-24T23:29:01Z","pushed_at":"2015-04-07T21:22:35Z","git_url":"git://github.com/Neamar/corporate.git","ssh_url":"git@github.com:Neamar/corporate.git","clone_url":"https://github.com/Neamar/corporate.git","svn_url":"https://github.com/Neamar/corporate","homepage":null,"size":6439,"stargazers_count":5,"watchers_count":5,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/117"},"html":{"href":"https://github.com/Neamar/corporate/pull/117"},"issue":{"href":"https://api.github.com/repos/Neamar/corporate/issues/117"},"comments":{"href":"https://api.github.com/repos/Neamar/corporate/issues/117/comments"},"review_comments":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/117/comments"},"review_comment":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Neamar/corporate/pulls/117/commits"},"statuses":{"href":"https://api.github.com/repos/Neamar/corporate/statuses/26f37a5fa7ab9997f73bc69fc172ee5b9c04bb4b"}}}}