{"action":"created","comment":{"url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/comments/77965391","id":77965391,"diff_hunk":"@@ -93,108 +59,28 @@ class WorkerTelegram(Worker):\n     def __init__(self, multi):\n         super(WorkerTelegram, self).__init__(multi)\n         self.interval = 10\n-        self.threads_bundles_list = []  # token, bot, odoo_thread, odoo_dispatch\n+        self.threads_bundles_list = []  # db_name, odoo_thread, odoo_dispatch","path":"telegram/__init__.py","position":61,"original_position":61,"commit_id":"594667f1fe1399fd04d3a8c107c1d406d9e61f90","original_commit_id":"594667f1fe1399fd04d3a8c107c1d406d9e61f90","user":{"login":"yelizariev","id":186131,"avatar_url":"https://avatars.githubusercontent.com/u/186131?v=3","gravatar_id":"","url":"https://api.github.com/users/yelizariev","html_url":"https://github.com/yelizariev","followers_url":"https://api.github.com/users/yelizariev/followers","following_url":"https://api.github.com/users/yelizariev/following{/other_user}","gists_url":"https://api.github.com/users/yelizariev/gists{/gist_id}","starred_url":"https://api.github.com/users/yelizariev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yelizariev/subscriptions","organizations_url":"https://api.github.com/users/yelizariev/orgs","repos_url":"https://api.github.com/users/yelizariev/repos","events_url":"https://api.github.com/users/yelizariev/events{/privacy}","received_events_url":"https://api.github.com/users/yelizariev/received_events","type":"User","site_admin":false},"body":"use a dictionary instead. Also, you may choose more meaningful variable name, e.g.\r\nself.active_dbs = {} # db_name -> {\"odoo_thread\": ... , \"odoo_dispatch\": ...}","created_at":"2016-09-08T08:32:00Z","updated_at":"2016-09-08T08:32:00Z","html_url":"https://github.com/it-projects-llc/odoo-telegram/pull/32#discussion_r77965391","pull_request_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/comments/77965391"},"html":{"href":"https://github.com/it-projects-llc/odoo-telegram/pull/32#discussion_r77965391"},"pull_request":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32","id":84150125,"html_url":"https://github.com/it-projects-llc/odoo-telegram/pull/32","diff_url":"https://github.com/it-projects-llc/odoo-telegram/pull/32.diff","patch_url":"https://github.com/it-projects-llc/odoo-telegram/pull/32.patch","issue_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/32","number":32,"state":"open","locked":false,"title":"WIP WorkerTelegram creates only TelegramDispatch and OdooTelegramThread. Other threads creates on ir config parameter create/edit events","user":{"login":"ilyasProgrammer","id":15200087,"avatar_url":"https://avatars.githubusercontent.com/u/15200087?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyasProgrammer","html_url":"https://github.com/ilyasProgrammer","followers_url":"https://api.github.com/users/ilyasProgrammer/followers","following_url":"https://api.github.com/users/ilyasProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/ilyasProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyasProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyasProgrammer/subscriptions","organizations_url":"https://api.github.com/users/ilyasProgrammer/orgs","repos_url":"https://api.github.com/users/ilyasProgrammer/repos","events_url":"https://api.github.com/users/ilyasProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/ilyasProgrammer/received_events","type":"User","site_admin":false},"body":"…amThread. Other threads creates on ir config parameter create/edit events.","created_at":"2016-09-06T16:03:10Z","updated_at":"2016-09-08T08:32:00Z","closed_at":null,"merged_at":null,"merge_commit_sha":"faebc1df80b04cd57726a63a1b8fde8a2c929b06","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32/commits","review_comments_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32/comments","review_comment_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/comments{/number}","comments_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/32/comments","statuses_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/statuses/594667f1fe1399fd04d3a8c107c1d406d9e61f90","head":{"label":"ilyasProgrammer:8_fix_odoo_listener","ref":"8_fix_odoo_listener","sha":"594667f1fe1399fd04d3a8c107c1d406d9e61f90","user":{"login":"ilyasProgrammer","id":15200087,"avatar_url":"https://avatars.githubusercontent.com/u/15200087?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyasProgrammer","html_url":"https://github.com/ilyasProgrammer","followers_url":"https://api.github.com/users/ilyasProgrammer/followers","following_url":"https://api.github.com/users/ilyasProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/ilyasProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyasProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyasProgrammer/subscriptions","organizations_url":"https://api.github.com/users/ilyasProgrammer/orgs","repos_url":"https://api.github.com/users/ilyasProgrammer/repos","events_url":"https://api.github.com/users/ilyasProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/ilyasProgrammer/received_events","type":"User","site_admin":false},"repo":{"id":59206563,"name":"odoo-telegram","full_name":"ilyasProgrammer/odoo-telegram","owner":{"login":"ilyasProgrammer","id":15200087,"avatar_url":"https://avatars.githubusercontent.com/u/15200087?v=3","gravatar_id":"","url":"https://api.github.com/users/ilyasProgrammer","html_url":"https://github.com/ilyasProgrammer","followers_url":"https://api.github.com/users/ilyasProgrammer/followers","following_url":"https://api.github.com/users/ilyasProgrammer/following{/other_user}","gists_url":"https://api.github.com/users/ilyasProgrammer/gists{/gist_id}","starred_url":"https://api.github.com/users/ilyasProgrammer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilyasProgrammer/subscriptions","organizations_url":"https://api.github.com/users/ilyasProgrammer/orgs","repos_url":"https://api.github.com/users/ilyasProgrammer/repos","events_url":"https://api.github.com/users/ilyasProgrammer/events{/privacy}","received_events_url":"https://api.github.com/users/ilyasProgrammer/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ilyasProgrammer/odoo-telegram","description":"","fork":true,"url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram","forks_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/forks","keys_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/teams","hooks_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/hooks","issue_events_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/issues/events{/number}","events_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/events","assignees_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/assignees{/user}","branches_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/branches{/branch}","tags_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/tags","blobs_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/git/refs{/sha}","trees_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/statuses/{sha}","languages_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/languages","stargazers_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/stargazers","contributors_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/contributors","subscribers_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/subscribers","subscription_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/subscription","commits_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/commits{/sha}","git_commits_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/git/commits{/sha}","comments_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/comments{/number}","issue_comment_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/issues/comments{/number}","contents_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/contents/{+path}","compare_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/merges","archive_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/downloads","issues_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/issues{/number}","pulls_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/pulls{/number}","milestones_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/milestones{/number}","notifications_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/labels{/name}","releases_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/releases{/id}","deployments_url":"https://api.github.com/repos/ilyasProgrammer/odoo-telegram/deployments","created_at":"2016-05-19T12:59:24Z","updated_at":"2016-09-07T06:46:07Z","pushed_at":"2016-09-08T07:57:50Z","git_url":"git://github.com/ilyasProgrammer/odoo-telegram.git","ssh_url":"git@github.com:ilyasProgrammer/odoo-telegram.git","clone_url":"https://github.com/ilyasProgrammer/odoo-telegram.git","svn_url":"https://github.com/ilyasProgrammer/odoo-telegram","homepage":null,"size":932,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"it-projects-llc:8.0","ref":"8.0","sha":"5ee56ab9964c0c178c1d077f029cf862e210cb7b","user":{"login":"it-projects-llc","id":17959306,"avatar_url":"https://avatars.githubusercontent.com/u/17959306?v=3","gravatar_id":"","url":"https://api.github.com/users/it-projects-llc","html_url":"https://github.com/it-projects-llc","followers_url":"https://api.github.com/users/it-projects-llc/followers","following_url":"https://api.github.com/users/it-projects-llc/following{/other_user}","gists_url":"https://api.github.com/users/it-projects-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/it-projects-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-projects-llc/subscriptions","organizations_url":"https://api.github.com/users/it-projects-llc/orgs","repos_url":"https://api.github.com/users/it-projects-llc/repos","events_url":"https://api.github.com/users/it-projects-llc/events{/privacy}","received_events_url":"https://api.github.com/users/it-projects-llc/received_events","type":"Organization","site_admin":false},"repo":{"id":58188910,"name":"odoo-telegram","full_name":"it-projects-llc/odoo-telegram","owner":{"login":"it-projects-llc","id":17959306,"avatar_url":"https://avatars.githubusercontent.com/u/17959306?v=3","gravatar_id":"","url":"https://api.github.com/users/it-projects-llc","html_url":"https://github.com/it-projects-llc","followers_url":"https://api.github.com/users/it-projects-llc/followers","following_url":"https://api.github.com/users/it-projects-llc/following{/other_user}","gists_url":"https://api.github.com/users/it-projects-llc/gists{/gist_id}","starred_url":"https://api.github.com/users/it-projects-llc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/it-projects-llc/subscriptions","organizations_url":"https://api.github.com/users/it-projects-llc/orgs","repos_url":"https://api.github.com/users/it-projects-llc/repos","events_url":"https://api.github.com/users/it-projects-llc/events{/privacy}","received_events_url":"https://api.github.com/users/it-projects-llc/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/it-projects-llc/odoo-telegram","description":"Telegram.org and Odoo.com integration","fork":false,"url":"https://api.github.com/repos/it-projects-llc/odoo-telegram","forks_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/forks","keys_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/keys{/key_id}","collaborators_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/teams","hooks_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/hooks","issue_events_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/events{/number}","events_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/events","assignees_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/assignees{/user}","branches_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/branches{/branch}","tags_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/tags","blobs_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/git/refs{/sha}","trees_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/git/trees{/sha}","statuses_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/statuses/{sha}","languages_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/languages","stargazers_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/stargazers","contributors_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/contributors","subscribers_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/subscribers","subscription_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/subscription","commits_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/commits{/sha}","git_commits_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/git/commits{/sha}","comments_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/comments{/number}","issue_comment_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/comments{/number}","contents_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/contents/{+path}","compare_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/compare/{base}...{head}","merges_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/merges","archive_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/downloads","issues_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues{/number}","pulls_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls{/number}","milestones_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/milestones{/number}","notifications_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/labels{/name}","releases_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/releases{/id}","deployments_url":"https://api.github.com/repos/it-projects-llc/odoo-telegram/deployments","created_at":"2016-05-06T07:23:04Z","updated_at":"2016-08-04T04:54:03Z","pushed_at":"2016-09-08T07:57:50Z","git_url":"git://github.com/it-projects-llc/odoo-telegram.git","ssh_url":"git@github.com:it-projects-llc/odoo-telegram.git","clone_url":"https://github.com/it-projects-llc/odoo-telegram.git","svn_url":"https://github.com/it-projects-llc/odoo-telegram","homepage":"https://www.it-projects.info/","size":985,"stargazers_count":4,"watchers_count":4,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":2,"forks":9,"open_issues":2,"watchers":4,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32"},"html":{"href":"https://github.com/it-projects-llc/odoo-telegram/pull/32"},"issue":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/32"},"comments":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/it-projects-llc/odoo-telegram/statuses/594667f1fe1399fd04d3a8c107c1d406d9e61f90"}}}}
{"actor":{"display_login":"yelizariev"}}