From cf9f6b4c99042234157ed189fa4437a6718c51711f949e513cfdf98d10d1d6ee Mon Sep 17 00:00:00 2001 From: vladislav Date: Mon, 17 Aug 2026 10:35:25 -0400 Subject: [PATCH] fix --- main.ipynb | 2 +- main.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/main.ipynb b/main.ipynb index 595a012..e0e93dc 100644 --- a/main.ipynb +++ b/main.ipynb @@ -4601,7 +4601,7 @@ "\n", " data = [doc async for doc in cursor]\n", " exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list()\n", - " competitions = await competitions_col.find({'_id': {'$in': [i.get('competitions') for i in data if i.get('competitions')]}}).to_list()\n", + " competitions = await competitions_col.find({'_id': {'$in': [i.get('competition_id') for i in data if i.get('competition_id')]}}).to_list()\n", " return templates.TemplateResponse(\n", " request=request,\n", " name=\"profile/delivery.html\",\n", diff --git a/main.py b/main.py index 17f1b77..a43bbcc 100644 --- a/main.py +++ b/main.py @@ -3505,7 +3505,7 @@ async def profile_delivery( data = [doc async for doc in cursor] exhibitions = await exhibition_collection.find({'_id': {'$in': [ObjectId(i.get('exhibition_id')) for i in data if i.get('exhibition_id')]}}).to_list() - competitions = await competitions_col.find({'_id': {'$in': [i.get('competitions') for i in data if i.get('competitions')]}}).to_list() + competitions = await competitions_col.find({'_id': {'$in': [i.get('competition_id') for i in data if i.get('competition_id')]}}).to_list() return templates.TemplateResponse( request=request, name="profile/delivery.html",