lastrowid
This commit is contained in:
@@ -240,7 +240,7 @@ def start_register():
|
|||||||
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor:
|
||||||
cursor.execute(INSERT_MEMBERS)
|
cursor.execute(INSERT_MEMBERS)
|
||||||
|
|
||||||
last_row_id=cursor.cursor
|
last_row_id=cursor.lastrowid
|
||||||
|
|
||||||
return jsonify(hello="ameye signup path world", last_row_id=last_row_id)
|
return jsonify(hello="ameye signup path world", last_row_id=last_row_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user