Skip to content

Commit

Permalink
fix: fix messed update method
Browse files Browse the repository at this point in the history
  • Loading branch information
dantetemplar committed Jul 19, 2024
1 parent fb934cd commit 42e3b8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/moodle/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ async def read_all_courses(self) -> list[MoodleCourse]:
async def content_uploaded(self, data: InContent) -> None:
content = data.content

await MoodleEntry.update(
await MoodleEntry.get_motor_collection().update_one(
{"course_id": data.course_id, "module_id": data.module_id, "contents.filename": content.filename},
{
"$set": {
Expand Down

0 comments on commit 42e3b8e

Please sign in to comment.