{"action":"created","issue":{"url":"https://api.github.com/repos/airbnb/airflow/issues/1207","repository_url":"https://api.github.com/repos/airbnb/airflow","labels_url":"https://api.github.com/repos/airbnb/airflow/issues/1207/labels{/name}","comments_url":"https://api.github.com/repos/airbnb/airflow/issues/1207/comments","events_url":"https://api.github.com/repos/airbnb/airflow/issues/1207/events","html_url":"https://github.com/airbnb/airflow/pull/1207","id":143239554,"number":1207,"title":"Allow disabling periodic committing when inserting rows with DbApiHook","user":{"login":"underyx","id":1060436,"avatar_url":"https://avatars.githubusercontent.com/u/1060436?v=3","gravatar_id":"","url":"https://api.github.com/users/underyx","html_url":"https://github.com/underyx","followers_url":"https://api.github.com/users/underyx/followers","following_url":"https://api.github.com/users/underyx/following{/other_user}","gists_url":"https://api.github.com/users/underyx/gists{/gist_id}","starred_url":"https://api.github.com/users/underyx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/underyx/subscriptions","organizations_url":"https://api.github.com/users/underyx/orgs","repos_url":"https://api.github.com/users/underyx/repos","events_url":"https://api.github.com/users/underyx/events{/privacy}","received_events_url":"https://api.github.com/users/underyx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T13:08:17Z","updated_at":"2016-03-24T13:09:36Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/airbnb/airflow/pulls/1207","html_url":"https://github.com/airbnb/airflow/pull/1207","diff_url":"https://github.com/airbnb/airflow/pull/1207.diff","patch_url":"https://github.com/airbnb/airflow/pull/1207.patch"},"body":"```python\r\n>>> i = 1\r\n>>> commit_every = 0\r\n>>> bool(i % commit_every == 0)  # previously\r\nTraceback (most recent call last):\r\n  File \"<stdin>\", line 1, in <module>\r\nZeroDivisionError: integer division or modulo by zero\r\n>>> bool(commit_every and i % commit_every == 0)  # with this change\r\nFalse\r\n```"},"comment":{"url":"https://api.github.com/repos/airbnb/airflow/issues/comments/200823876","html_url":"https://github.com/airbnb/airflow/pull/1207#issuecomment-200823876","issue_url":"https://api.github.com/repos/airbnb/airflow/issues/1207","id":200823876,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T13:09:36Z","updated_at":"2016-03-24T13:09:36Z","body":"[![Code Health](https://landscape.io/badge/335732/landscape.svg?style=flat)](https://landscape.io/diff/309647)\nCode quality remained the same when pulling **[7a31361](https://github.com/underyx/airflow/commit/7a313614f4dba11b9a41c3010cba0472c562037b) on underyx:patch-1** into **[58df89f](https://github.com/airbnb/airflow/commit/58df89f32ee46690e45923e698b71c9f6c7bffe4) on airbnb:master**."}}