{"action":"opened","issue":{"url":"https://api.github.com/repos/jmcnamara/XlsxWriter/issues/388","repository_url":"https://api.github.com/repos/jmcnamara/XlsxWriter","labels_url":"https://api.github.com/repos/jmcnamara/XlsxWriter/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/jmcnamara/XlsxWriter/issues/388/comments","events_url":"https://api.github.com/repos/jmcnamara/XlsxWriter/issues/388/events","html_url":"https://github.com/jmcnamara/XlsxWriter/issues/388","id":184993321,"number":388,"title":"Create multiple xlsx file in loop","user":{"login":"zahidmak","id":3873274,"avatar_url":"https://avatars.githubusercontent.com/u/3873274?v=3","gravatar_id":"","url":"https://api.github.com/users/zahidmak","html_url":"https://github.com/zahidmak","followers_url":"https://api.github.com/users/zahidmak/followers","following_url":"https://api.github.com/users/zahidmak/following{/other_user}","gists_url":"https://api.github.com/users/zahidmak/gists{/gist_id}","starred_url":"https://api.github.com/users/zahidmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zahidmak/subscriptions","organizations_url":"https://api.github.com/users/zahidmak/orgs","repos_url":"https://api.github.com/users/zahidmak/repos","events_url":"https://api.github.com/users/zahidmak/events{/privacy}","received_events_url":"https://api.github.com/users/zahidmak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-25T01:03:03Z","updated_at":"2016-10-25T01:03:03Z","closed_at":null,"body":"```python\r\nimport xlsxwriter\r\ndef run():\r\n        workbookName = 'Keywords_search' + i.strftime('%Y-%m-%d-%H-%M-%S') + '.xlsx'\r\n        workbook = xlsxwriter.Workbook(workbookName)\r\n        worksheet = workbook.add_worksheet('Keyword search')\r\n        worksheet.set_column('A:A', 80)\r\n        bold = workbook.add_format({'bold': True})\r\n        worksheet.write('A1', 'URL', bold)\r\n        headingColumn = 1\r\n        for keyword in keywords_to_search:\r\n            worksheet.write(0, headingColumn, keyword, bold)\r\n            headingColumn += 1\r\n        #Writing some more data \r\n        workbook.close()\r\n\r\nwhile True:\r\n        run()\r\n```\r\n\r\nThe file is created on first run and then it does not create another file. I am trying to create a file every time the function is executed. I am following the documentation. Could you please explain if I have destruct any variable etc.\r\nThank you,\r\nIt is truly amazing library and I enjoyed using it. Your help is highly appreciated"}}
{"actor":{"display_login":"zahidmak"}}