{"action":"created","issue":{"url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/12","repository_url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm","labels_url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/12/comments","events_url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/12/events","html_url":"https://github.com/fernandojunior/python-sqlite-orm/issues/12","id":190907964,"number":12,"title":"I get an error when i try to update. Traceback info: assert (post.id == 2) AssertionError","user":{"login":"xiaocaiyidie","id":20656272,"avatar_url":"https://avatars.githubusercontent.com/u/20656272?v=3","gravatar_id":"","url":"https://api.github.com/users/xiaocaiyidie","html_url":"https://github.com/xiaocaiyidie","followers_url":"https://api.github.com/users/xiaocaiyidie/followers","following_url":"https://api.github.com/users/xiaocaiyidie/following{/other_user}","gists_url":"https://api.github.com/users/xiaocaiyidie/gists{/gist_id}","starred_url":"https://api.github.com/users/xiaocaiyidie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiaocaiyidie/subscriptions","organizations_url":"https://api.github.com/users/xiaocaiyidie/orgs","repos_url":"https://api.github.com/users/xiaocaiyidie/repos","events_url":"https://api.github.com/users/xiaocaiyidie/events{/privacy}","received_events_url":"https://api.github.com/users/xiaocaiyidie/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-11-22T05:00:44Z","updated_at":"2016-11-27T11:09:44Z","closed_at":null,"body":"here is my code:\r\n\r\n post = Post('testMessage').save()\r\n    # print post.id\r\n    assert (post.id == 2)\r\n    # post.text = 'Hello rrr'\r\n    post.update()"},"comment":{"url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/comments/263116048","html_url":"https://github.com/fernandojunior/python-sqlite-orm/issues/12#issuecomment-263116048","issue_url":"https://api.github.com/repos/fernandojunior/python-sqlite-orm/issues/12","id":263116048,"user":{"login":"fernandojunior","id":4954947,"avatar_url":"https://avatars.githubusercontent.com/u/4954947?v=3","gravatar_id":"","url":"https://api.github.com/users/fernandojunior","html_url":"https://github.com/fernandojunior","followers_url":"https://api.github.com/users/fernandojunior/followers","following_url":"https://api.github.com/users/fernandojunior/following{/other_user}","gists_url":"https://api.github.com/users/fernandojunior/gists{/gist_id}","starred_url":"https://api.github.com/users/fernandojunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fernandojunior/subscriptions","organizations_url":"https://api.github.com/users/fernandojunior/orgs","repos_url":"https://api.github.com/users/fernandojunior/repos","events_url":"https://api.github.com/users/fernandojunior/events{/privacy}","received_events_url":"https://api.github.com/users/fernandojunior/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T11:09:44Z","updated_at":"2016-11-27T11:09:44Z","body":"Hey @xiaocaiyidie, here's how you can read an object from SQLite:\r\n```py\r\n\r\n# using default database\r\npost = Post.manager().get(id=1)\r\n\r\n# from another database\r\ndb2 = Database('db2.sqlite')\r\npost = Post.manager(db=db2).get(id=1)\r\n```"}}
{"actor":{"display_login":"fernandojunior"}}