From 6d68f6dc326869d3f560a82963d49fb3a2b1eafd Mon Sep 17 00:00:00 2001 From: billychou Date: Tue, 7 Jan 2020 16:23:01 +0800 Subject: [PATCH] fix type error --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index ae46e76..851df35 100644 --- a/app.py +++ b/app.py @@ -78,7 +78,7 @@ def new_person(): # Ideally I would roll this into a single call logging.info("Received Properties: " + str(properties)) for prop_name, prop_value in properties.items(): - g.V(person).property(prop_name, prop_value).next() + g.V(person.id).property(prop_name, prop_value).next() except(ValueError, AttributeError, TypeError) as e: logging.error(e, exc_info=True) raise BadRequestError('Could not insert person. Error: ' + str(e))