From 87a31005cba9da1e616c38153b8283d33f3a3416 Mon Sep 17 00:00:00 2001 From: vliu36 <116984041+vliu36@users.noreply.github.com> Date: Sun, 28 Jul 2024 17:37:45 -0700 Subject: [PATCH] print statements for testing --- controller/src/mongodb/color.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controller/src/mongodb/color.py b/controller/src/mongodb/color.py index de0afe2d..9e49bc96 100644 --- a/controller/src/mongodb/color.py +++ b/controller/src/mongodb/color.py @@ -3,7 +3,7 @@ def getColor(uuid: str) -> str: """ Getter for color state in the DB. Stdout when method is instantiated and the values.""" response = lumongo.findOne({"uuid": uuid}, {"color": 1}) - print("Response", response) + print("Response", response.text) print() color = response.json()["document"]["color"] print("Color: ", color) @@ -15,7 +15,7 @@ def setColor(uuid: str, value: str): if len(value) == 7: print(f"INFO | SET | COLOR: {value}") response = lumongo.updateOne({"uuid": uuid}, {'$set': {'color': value}}) - print("Response:", response) + print("Response:", response.text) else: print(f"ERROR | SET | COLOR: {value} is not a valid color value!")