collection.find Nimmt nur ein Positionsargument und du gibst ihm zwei.
Ändern Sie Ihre Aufrufe so, dass sie wie folgt aussehen:grades.find({"type": "homework", "student_id": i}) .
collection.find Nimmt nur ein Positionsargument und du gibst ihm zwei.
Ändern Sie Ihre Aufrufe so, dass sie wie folgt aussehen:grades.find({"type": "homework", "student_id": i}) .