Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaellaude committed Jun 30, 2024
1 parent a0b08b1 commit 95c4b43
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions backend/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,9 @@ async def update_plan(
):
db_plan = AssignmentsCreate.model_validate(data)
new_assignments = {f"assignments.{k}": v for k, v in db_plan.assignments.items()}
print(new_assignments)
result = mongodb.plans.update_many(
{"_id": ObjectId(plan_id)}, {"$set": new_assignments}, upsert=True
)
print(result)
print("RAW RESULT", result.raw_result)
return AssignmentsUpdate(
acknowledged=result.acknowledged,
inserted_id=result.upserted_id,
Expand Down

0 comments on commit 95c4b43

Please sign in to comment.