From c94f18628fd556bc23e63d806ed6e18294a5bf0c Mon Sep 17 00:00:00 2001 From: happycastle <41810556+happycastle114@users.noreply.github.com> Date: Fri, 1 Dec 2023 01:24:38 +0900 Subject: [PATCH] Add: Chart Data year --- routers/scrapResultNational.py | 1 + 1 file changed, 1 insertion(+) 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}},