Skip to content

Commit 66f63db

Browse files
author
Clemens Borys
committed
id vs person_id typo
1 parent 31004f1 commit 66f63db

File tree

1 file changed

+1
-1
lines changed
  • flask-connexion-rest-part-2/version_1

1 file changed

+1
-1
lines changed

flask-connexion-rest-part-2/version_1/people.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def update(person_id, person):
145145
update = schema.load(person, session=db.session).data
146146

147147
# Set the id to the person we want to update
148-
update.id = update_person.person_id
148+
update.person_id = update_person.person_id
149149

150150
# merge the new object into the old and commit it to the db
151151
db.session.merge(update)

0 commit comments

Comments
 (0)