{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/comments/36609778","id":36609778,"diff_hunk":"@@ -17,13 +17,25 @@ def _requests(steps):\n     return requests\n \n \n+def set_total_time(session_log_steps):\n+    log_steps = []\n+    for _next, item in zip(session_log_steps[1:], session_log_steps):\n+        try:\n+            item.total_time = round(_next.time_created - item.time_created, 2)\n+        except Exception:\n+            item.total_time = None\n+        log_steps.append(item)\n+\n+    return log_steps","path":"session/views.py","position":13,"original_position":13,"commit_id":"99bdc019e4941ca730465dde5ea7210f063f2282","original_commit_id":"99bdc019e4941ca730465dde5ea7210f063f2282","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"body":"По-хорошему бы добавить некий end_time для шагов в бэкенде и в морде считать только разность, но пока и так сойдет.\r\n:+1: ","created_at":"2015-08-10T08:16:04Z","updated_at":"2015-08-10T08:16:04Z","html_url":"https://github.com/2gis/vmmaster-frontend/pull/16#discussion_r36609778","pull_request_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/comments/36609778"},"html":{"href":"https://github.com/2gis/vmmaster-frontend/pull/16#discussion_r36609778"},"pull_request":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16","id":41994327,"html_url":"https://github.com/2gis/vmmaster-frontend/pull/16","diff_url":"https://github.com/2gis/vmmaster-frontend/pull/16.diff","patch_url":"https://github.com/2gis/vmmaster-frontend/pull/16.patch","issue_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/16","number":16,"state":"open","locked":false,"title":"added_time_for_session_log_steps","user":{"login":"sh0ked","id":3863442,"avatar_url":"https://avatars.githubusercontent.com/u/3863442?v=3","gravatar_id":"","url":"https://api.github.com/users/sh0ked","html_url":"https://github.com/sh0ked","followers_url":"https://api.github.com/users/sh0ked/followers","following_url":"https://api.github.com/users/sh0ked/following{/other_user}","gists_url":"https://api.github.com/users/sh0ked/gists{/gist_id}","starred_url":"https://api.github.com/users/sh0ked/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh0ked/subscriptions","organizations_url":"https://api.github.com/users/sh0ked/orgs","repos_url":"https://api.github.com/users/sh0ked/repos","events_url":"https://api.github.com/users/sh0ked/events{/privacy}","received_events_url":"https://api.github.com/users/sh0ked/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-10T07:42:14Z","updated_at":"2015-08-10T08:16:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"06dbd51393c9d1423408e65965e6314029c2d0c0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16/commits","review_comments_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16/comments","review_comment_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/16/comments","statuses_url":"https://api.github.com/repos/2gis/vmmaster-frontend/statuses/99bdc019e4941ca730465dde5ea7210f063f2282","head":{"label":"2gis:added_time_for_session_log_steps","ref":"added_time_for_session_log_steps","sha":"99bdc019e4941ca730465dde5ea7210f063f2282","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":32374473,"name":"vmmaster-frontend","full_name":"2gis/vmmaster-frontend","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster-frontend","description":"Overview vmmaster session and tests specific info","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster-frontend","forks_url":"https://api.github.com/repos/2gis/vmmaster-frontend/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster-frontend/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster-frontend/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster-frontend/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster-frontend/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster-frontend/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster-frontend/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster-frontend/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster-frontend/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster-frontend/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster-frontend/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster-frontend/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster-frontend/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster-frontend/releases{/id}","created_at":"2015-03-17T05:59:07Z","updated_at":"2015-04-18T11:08:43Z","pushed_at":"2015-08-10T07:42:16Z","git_url":"git://github.com/2gis/vmmaster-frontend.git","ssh_url":"git@github.com:2gis/vmmaster-frontend.git","clone_url":"https://github.com/2gis/vmmaster-frontend.git","svn_url":"https://github.com/2gis/vmmaster-frontend","homepage":null,"size":1806,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"ebec6c6d9d1ff0134e0bead7eb1fd57de7583d57","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":32374473,"name":"vmmaster-frontend","full_name":"2gis/vmmaster-frontend","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/vmmaster-frontend","description":"Overview vmmaster session and tests specific info","fork":false,"url":"https://api.github.com/repos/2gis/vmmaster-frontend","forks_url":"https://api.github.com/repos/2gis/vmmaster-frontend/forks","keys_url":"https://api.github.com/repos/2gis/vmmaster-frontend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/vmmaster-frontend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/vmmaster-frontend/teams","hooks_url":"https://api.github.com/repos/2gis/vmmaster-frontend/hooks","issue_events_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/vmmaster-frontend/events","assignees_url":"https://api.github.com/repos/2gis/vmmaster-frontend/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/vmmaster-frontend/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/vmmaster-frontend/tags","blobs_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/vmmaster-frontend/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/vmmaster-frontend/languages","stargazers_url":"https://api.github.com/repos/2gis/vmmaster-frontend/stargazers","contributors_url":"https://api.github.com/repos/2gis/vmmaster-frontend/contributors","subscribers_url":"https://api.github.com/repos/2gis/vmmaster-frontend/subscribers","subscription_url":"https://api.github.com/repos/2gis/vmmaster-frontend/subscription","commits_url":"https://api.github.com/repos/2gis/vmmaster-frontend/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/vmmaster-frontend/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/vmmaster-frontend/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/vmmaster-frontend/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/vmmaster-frontend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/vmmaster-frontend/merges","archive_url":"https://api.github.com/repos/2gis/vmmaster-frontend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/vmmaster-frontend/downloads","issues_url":"https://api.github.com/repos/2gis/vmmaster-frontend/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/vmmaster-frontend/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/vmmaster-frontend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/vmmaster-frontend/labels{/name}","releases_url":"https://api.github.com/repos/2gis/vmmaster-frontend/releases{/id}","created_at":"2015-03-17T05:59:07Z","updated_at":"2015-04-18T11:08:43Z","pushed_at":"2015-08-10T07:42:16Z","git_url":"git://github.com/2gis/vmmaster-frontend.git","ssh_url":"git@github.com:2gis/vmmaster-frontend.git","clone_url":"https://github.com/2gis/vmmaster-frontend.git","svn_url":"https://github.com/2gis/vmmaster-frontend","homepage":null,"size":1806,"stargazers_count":1,"watchers_count":1,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":3,"forks":1,"open_issues":3,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16"},"html":{"href":"https://github.com/2gis/vmmaster-frontend/pull/16"},"issue":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/16"},"comments":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/vmmaster-frontend/statuses/99bdc019e4941ca730465dde5ea7210f063f2282"}}}}