diff --git a/routers/scrapResultNational.py b/routers/scrapResultNational.py index 0b71c96..c62af76 100644 --- a/routers/scrapResultNational.py +++ b/routers/scrapResultNational.py @@ -168,6 +168,7 @@ async def getNationalTemplateData( "level": 0, "councilorType": "national_councilor", "is_elected": True, + "year": year, } }, {"$sort": {"year": -1}},