From f6b647bd61c47559ff14bb28527628120fb8874d Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 27 Mar 2018 17:29:55 -0400 Subject: [PATCH] Default for robot account metadata should be an empty dict, not a string --- data/model/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/model/user.py b/data/model/user.py index 28942898b..7f98a99a9 100644 --- a/data/model/user.py +++ b/data/model/user.py @@ -264,7 +264,7 @@ def create_robot(robot_shortname, parent, description='', unstructured_metadata= def get_or_create_robot_metadata(robot): - defaults = dict(description='', unstructured_json='{}') + defaults = dict(description='', unstructured_json={}) metadata, _ = RobotAccountMetadata.get_or_create(robot_account=robot, defaults=defaults) return metadata