Skip to content

Commit

Permalink
Merge pull request #9 from excpt0/master
Browse files Browse the repository at this point in the history
Fixed returning tuple instead ID
  • Loading branch information
rudyryk committed Oct 5, 2015
2 parents f6b56c0 + be31eb7 commit 510a274
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peewee_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ def last_insert_id_async(self, cursor, model):

if seq:
yield from cursor.execute("SELECT CURRVAL('%s\"%s\"')" % (schema, seq))
result = yield from cursor.fetchone()
result = (yield from cursor.fetchone())[0]
return result

def close(self):
Expand Down

0 comments on commit 510a274

Please sign in to comment.