{"action":"created","issue":{"url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/22","labels_url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/22/comments","events_url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/22/events","html_url":"https://github.com/ashcrow/flask-track-usage/issues/22","id":96329998,"number":22,"title":"Use the flask-sqlalchemy metadata instead of creating a new one","user":{"login":"gouthambs","id":4218827,"avatar_url":"https://avatars.githubusercontent.com/u/4218827?v=3","gravatar_id":"","url":"https://api.github.com/users/gouthambs","html_url":"https://github.com/gouthambs","followers_url":"https://api.github.com/users/gouthambs/followers","following_url":"https://api.github.com/users/gouthambs/following{/other_user}","gists_url":"https://api.github.com/users/gouthambs/gists{/gist_id}","starred_url":"https://api.github.com/users/gouthambs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gouthambs/subscriptions","organizations_url":"https://api.github.com/users/gouthambs/orgs","repos_url":"https://api.github.com/users/gouthambs/repos","events_url":"https://api.github.com/users/gouthambs/events{/privacy}","received_events_url":"https://api.github.com/users/gouthambs/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ashcrow/flask-track-usage/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ashcrow/flask-track-usage/milestones/3","html_url":"https://github.com/ashcrow/flask-track-usage/milestones/1.1.0","labels_url":"https://api.github.com/repos/ashcrow/flask-track-usage/milestones/3/labels","id":928820,"number":3,"title":"1.1.0","description":"Functionality enhancements which may require some backend updates (such as sql migration).","creator":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":4,"state":"open","created_at":"2015-01-09T16:08:22Z","updated_at":"2015-07-22T15:11:53Z","due_on":"2015-08-30T04:00:00Z","closed_at":null},"comments":6,"created_at":"2015-07-21T14:28:31Z","updated_at":"2015-07-22T15:19:05Z","closed_at":null,"body":"I found a small issue with the way the MetaData is constructed in the `sql.py`. Would like to fix this if you are still taking pull requests!"},"comment":{"url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/comments/123755850","html_url":"https://github.com/ashcrow/flask-track-usage/issues/22#issuecomment-123755850","issue_url":"https://api.github.com/repos/ashcrow/flask-track-usage/issues/22","id":123755850,"user":{"login":"ashcrow","id":22706,"avatar_url":"https://avatars.githubusercontent.com/u/22706?v=3","gravatar_id":"","url":"https://api.github.com/users/ashcrow","html_url":"https://github.com/ashcrow","followers_url":"https://api.github.com/users/ashcrow/followers","following_url":"https://api.github.com/users/ashcrow/following{/other_user}","gists_url":"https://api.github.com/users/ashcrow/gists{/gist_id}","starred_url":"https://api.github.com/users/ashcrow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashcrow/subscriptions","organizations_url":"https://api.github.com/users/ashcrow/orgs","repos_url":"https://api.github.com/users/ashcrow/repos","events_url":"https://api.github.com/users/ashcrow/events{/privacy}","received_events_url":"https://api.github.com/users/ashcrow/received_events","type":"User","site_admin":false},"created_at":"2015-07-22T15:19:05Z","updated_at":"2015-07-22T15:19:05Z","body":"@gouthambs does this end up being:\r\n\r\n```diff\r\n-            meta = sql.MetaData()\r\n+            if db:\r\n+                meta = db.metadata\r\n+            else:\r\n+                meta = sql.MetaData()\r\n```"}}