{"action":"created","comment":{"url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/comments/79941708","id":79941708,"diff_hunk":"@@ -3787,70 +3781,61 @@ def as_org_tz(dt):\n             for i in range(all_runs_count / max_rows + 1):\n                 total_run_sheet_count += 1\n                 name = \"Runs\" if (i + 1) <= 1 else \"Runs (%d)\" % (i + 1)\n-                sheet = book.add_sheet(name, cell_overwrite_ok=True)\n-                run_sheets.append(sheet)\n+                book.create_sheet(name)\n+                run_sheets.append(name)\n \n         total_merged_run_sheet_count = 0\n \n         # the full sheets we need for contacts\n         for i in range(contacts_count / max_rows + 1):\n             total_merged_run_sheet_count += 1\n             name = \"Contacts\" if (i + 1) <= 1 else \"Contacts (%d)\" % (i + 1)\n-            sheet = book.add_sheet(name, cell_overwrite_ok=True)\n-            run_sheets.append(sheet)\n+            book.create_sheet(name)\n+            run_sheets.append(name)\n \n         # then populate their header columns\n-        for (sheet_num, sheet) in enumerate(run_sheets):\n+        for (sheet_num, sheet_name) in enumerate(run_sheets):\n+\n+            sheet = book[sheet_name]\n             # build up our header row\n \n-            index = 0\n+            index = 1\n             if show_submitted_by:\n-                sheet.write(0, index, \"Surveyor\")\n-                sheet.col(0).width = medium_width\n+                sheet.cell(row=1, column=index, value=\"Surveyor\")","path":"temba/flows/models.py","position":64,"original_position":64,"commit_id":"9e2890791898ed972c1e945f9da87a7020385e8e","original_commit_id":"9e2890791898ed972c1e945f9da87a7020385e8e","user":{"login":"norkans7","id":1040571,"avatar_url":"https://avatars.githubusercontent.com/u/1040571?v=3","gravatar_id":"","url":"https://api.github.com/users/norkans7","html_url":"https://github.com/norkans7","followers_url":"https://api.github.com/users/norkans7/followers","following_url":"https://api.github.com/users/norkans7/following{/other_user}","gists_url":"https://api.github.com/users/norkans7/gists{/gist_id}","starred_url":"https://api.github.com/users/norkans7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norkans7/subscriptions","organizations_url":"https://api.github.com/users/norkans7/orgs","repos_url":"https://api.github.com/users/norkans7/repos","events_url":"https://api.github.com/users/norkans7/events{/privacy}","received_events_url":"https://api.github.com/users/norkans7/received_events","type":"User","site_admin":false},"body":"yep, it even throws when one use 0","created_at":"2016-09-21T21:54:50Z","updated_at":"2016-09-21T21:54:50Z","html_url":"https://github.com/nyaruka/rapidpro/pull/868#discussion_r79941708","pull_request_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868","_links":{"self":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/comments/79941708"},"html":{"href":"https://github.com/nyaruka/rapidpro/pull/868#discussion_r79941708"},"pull_request":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868"}}},"pull_request":{"url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868","id":86242988,"html_url":"https://github.com/nyaruka/rapidpro/pull/868","diff_url":"https://github.com/nyaruka/rapidpro/pull/868.diff","patch_url":"https://github.com/nyaruka/rapidpro/pull/868.patch","issue_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/868","number":868,"state":"open","locked":false,"title":"Update exports to use openpyxl; export xlsx","user":{"login":"norkans7","id":1040571,"avatar_url":"https://avatars.githubusercontent.com/u/1040571?v=3","gravatar_id":"","url":"https://api.github.com/users/norkans7","html_url":"https://github.com/norkans7","followers_url":"https://api.github.com/users/norkans7/followers","following_url":"https://api.github.com/users/norkans7/following{/other_user}","gists_url":"https://api.github.com/users/norkans7/gists{/gist_id}","starred_url":"https://api.github.com/users/norkans7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/norkans7/subscriptions","organizations_url":"https://api.github.com/users/norkans7/orgs","repos_url":"https://api.github.com/users/norkans7/repos","events_url":"https://api.github.com/users/norkans7/events{/privacy}","received_events_url":"https://api.github.com/users/norkans7/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-21T21:17:03Z","updated_at":"2016-09-21T21:54:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58e18928c2d7087d7c331e40e91425fa778206b6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868/commits","review_comments_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868/comments","review_comment_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/868/comments","statuses_url":"https://api.github.com/repos/nyaruka/rapidpro/statuses/9e2890791898ed972c1e945f9da87a7020385e8e","head":{"label":"nyaruka:openpyxl","ref":"openpyxl","sha":"9e2890791898ed972c1e945f9da87a7020385e8e","user":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars.githubusercontent.com/u/299256?v=3","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"repo":{"id":27415685,"name":"rapidpro","full_name":"nyaruka/rapidpro","owner":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars.githubusercontent.com/u/299256?v=3","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyaruka/rapidpro","description":"RapidPro is a hosted service allowing organizations to visually build scalable interactive messaging applications.","fork":true,"url":"https://api.github.com/repos/nyaruka/rapidpro","forks_url":"https://api.github.com/repos/nyaruka/rapidpro/forks","keys_url":"https://api.github.com/repos/nyaruka/rapidpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyaruka/rapidpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyaruka/rapidpro/teams","hooks_url":"https://api.github.com/repos/nyaruka/rapidpro/hooks","issue_events_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/events{/number}","events_url":"https://api.github.com/repos/nyaruka/rapidpro/events","assignees_url":"https://api.github.com/repos/nyaruka/rapidpro/assignees{/user}","branches_url":"https://api.github.com/repos/nyaruka/rapidpro/branches{/branch}","tags_url":"https://api.github.com/repos/nyaruka/rapidpro/tags","blobs_url":"https://api.github.com/repos/nyaruka/rapidpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyaruka/rapidpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyaruka/rapidpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyaruka/rapidpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyaruka/rapidpro/statuses/{sha}","languages_url":"https://api.github.com/repos/nyaruka/rapidpro/languages","stargazers_url":"https://api.github.com/repos/nyaruka/rapidpro/stargazers","contributors_url":"https://api.github.com/repos/nyaruka/rapidpro/contributors","subscribers_url":"https://api.github.com/repos/nyaruka/rapidpro/subscribers","subscription_url":"https://api.github.com/repos/nyaruka/rapidpro/subscription","commits_url":"https://api.github.com/repos/nyaruka/rapidpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyaruka/rapidpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyaruka/rapidpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyaruka/rapidpro/contents/{+path}","compare_url":"https://api.github.com/repos/nyaruka/rapidpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyaruka/rapidpro/merges","archive_url":"https://api.github.com/repos/nyaruka/rapidpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyaruka/rapidpro/downloads","issues_url":"https://api.github.com/repos/nyaruka/rapidpro/issues{/number}","pulls_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls{/number}","milestones_url":"https://api.github.com/repos/nyaruka/rapidpro/milestones{/number}","notifications_url":"https://api.github.com/repos/nyaruka/rapidpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyaruka/rapidpro/labels{/name}","releases_url":"https://api.github.com/repos/nyaruka/rapidpro/releases{/id}","deployments_url":"https://api.github.com/repos/nyaruka/rapidpro/deployments","created_at":"2014-12-02T04:53:16Z","updated_at":"2016-07-21T21:37:20Z","pushed_at":"2016-09-21T21:37:10Z","git_url":"git://github.com/nyaruka/rapidpro.git","ssh_url":"git@github.com:nyaruka/rapidpro.git","clone_url":"https://github.com/nyaruka/rapidpro.git","svn_url":"https://github.com/nyaruka/rapidpro","homepage":null,"size":51057,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":7,"default_branch":"master"}},"base":{"label":"nyaruka:master","ref":"master","sha":"7648df5ab426df08989aefe088fe45b5fe4532e3","user":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars.githubusercontent.com/u/299256?v=3","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"repo":{"id":27415685,"name":"rapidpro","full_name":"nyaruka/rapidpro","owner":{"login":"nyaruka","id":299256,"avatar_url":"https://avatars.githubusercontent.com/u/299256?v=3","gravatar_id":"","url":"https://api.github.com/users/nyaruka","html_url":"https://github.com/nyaruka","followers_url":"https://api.github.com/users/nyaruka/followers","following_url":"https://api.github.com/users/nyaruka/following{/other_user}","gists_url":"https://api.github.com/users/nyaruka/gists{/gist_id}","starred_url":"https://api.github.com/users/nyaruka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nyaruka/subscriptions","organizations_url":"https://api.github.com/users/nyaruka/orgs","repos_url":"https://api.github.com/users/nyaruka/repos","events_url":"https://api.github.com/users/nyaruka/events{/privacy}","received_events_url":"https://api.github.com/users/nyaruka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/nyaruka/rapidpro","description":"RapidPro is a hosted service allowing organizations to visually build scalable interactive messaging applications.","fork":true,"url":"https://api.github.com/repos/nyaruka/rapidpro","forks_url":"https://api.github.com/repos/nyaruka/rapidpro/forks","keys_url":"https://api.github.com/repos/nyaruka/rapidpro/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nyaruka/rapidpro/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nyaruka/rapidpro/teams","hooks_url":"https://api.github.com/repos/nyaruka/rapidpro/hooks","issue_events_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/events{/number}","events_url":"https://api.github.com/repos/nyaruka/rapidpro/events","assignees_url":"https://api.github.com/repos/nyaruka/rapidpro/assignees{/user}","branches_url":"https://api.github.com/repos/nyaruka/rapidpro/branches{/branch}","tags_url":"https://api.github.com/repos/nyaruka/rapidpro/tags","blobs_url":"https://api.github.com/repos/nyaruka/rapidpro/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nyaruka/rapidpro/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nyaruka/rapidpro/git/refs{/sha}","trees_url":"https://api.github.com/repos/nyaruka/rapidpro/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nyaruka/rapidpro/statuses/{sha}","languages_url":"https://api.github.com/repos/nyaruka/rapidpro/languages","stargazers_url":"https://api.github.com/repos/nyaruka/rapidpro/stargazers","contributors_url":"https://api.github.com/repos/nyaruka/rapidpro/contributors","subscribers_url":"https://api.github.com/repos/nyaruka/rapidpro/subscribers","subscription_url":"https://api.github.com/repos/nyaruka/rapidpro/subscription","commits_url":"https://api.github.com/repos/nyaruka/rapidpro/commits{/sha}","git_commits_url":"https://api.github.com/repos/nyaruka/rapidpro/git/commits{/sha}","comments_url":"https://api.github.com/repos/nyaruka/rapidpro/comments{/number}","issue_comment_url":"https://api.github.com/repos/nyaruka/rapidpro/issues/comments{/number}","contents_url":"https://api.github.com/repos/nyaruka/rapidpro/contents/{+path}","compare_url":"https://api.github.com/repos/nyaruka/rapidpro/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nyaruka/rapidpro/merges","archive_url":"https://api.github.com/repos/nyaruka/rapidpro/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nyaruka/rapidpro/downloads","issues_url":"https://api.github.com/repos/nyaruka/rapidpro/issues{/number}","pulls_url":"https://api.github.com/repos/nyaruka/rapidpro/pulls{/number}","milestones_url":"https://api.github.com/repos/nyaruka/rapidpro/milestones{/number}","notifications_url":"https://api.github.com/repos/nyaruka/rapidpro/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nyaruka/rapidpro/labels{/name}","releases_url":"https://api.github.com/repos/nyaruka/rapidpro/releases{/id}","deployments_url":"https://api.github.com/repos/nyaruka/rapidpro/deployments","created_at":"2014-12-02T04:53:16Z","updated_at":"2016-07-21T21:37:20Z","pushed_at":"2016-09-21T21:37:10Z","git_url":"git://github.com/nyaruka/rapidpro.git","ssh_url":"git@github.com:nyaruka/rapidpro.git","clone_url":"https://github.com/nyaruka/rapidpro.git","svn_url":"https://github.com/nyaruka/rapidpro","homepage":null,"size":51057,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":7,"forks":3,"open_issues":7,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868"},"html":{"href":"https://github.com/nyaruka/rapidpro/pull/868"},"issue":{"href":"https://api.github.com/repos/nyaruka/rapidpro/issues/868"},"comments":{"href":"https://api.github.com/repos/nyaruka/rapidpro/issues/868/comments"},"review_comments":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868/comments"},"review_comment":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nyaruka/rapidpro/pulls/868/commits"},"statuses":{"href":"https://api.github.com/repos/nyaruka/rapidpro/statuses/9e2890791898ed972c1e945f9da87a7020385e8e"}}}}
{"actor":{"display_login":"norkans7"}}