From 537cfdee1b4f722a3db7c2c5d20625d23f5f8313 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 26 Sep 2024 10:02:29 +0100 Subject: [PATCH] modified pipeline --- backend/models/pipelines.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/models/pipelines.py b/backend/models/pipelines.py index 6948b35..72a1807 100644 --- a/backend/models/pipelines.py +++ b/backend/models/pipelines.py @@ -33,7 +33,7 @@ def bitcoin_business_growth_timeseries(query): pipeline = [ { "$match": { - "days_ago": {"$lte": int( query["days_ago"] )}, + "days_ago": {"$lte": int(query["days_ago"])}, "country_name": query["country_name"], } }, @@ -51,7 +51,7 @@ def bitcoin_business_growth_timeseries(query): def bitcoin_business_growth_percent_diff_days_ago(query): pipeline = [ - {"$match": {"days_ago": {"$lte": int( query["days_ago"] )}}}, + {"$match": {"days_ago": {"$lte": int(query["days_ago"])}}}, {"$sort": {"country_name": 1, "days_ago": 1}}, { "$group": {