Skip to content

Commit

Permalink
print statements for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
vliu36 committed Jul 29, 2024
1 parent 5d53b42 commit 87a3100
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions controller/src/mongodb/color.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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!")
Expand Down

0 comments on commit 87a3100

Please sign in to comment.