From 8c3e26a0a0234422c736c1fa7e77d62d42be24d9 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 16 Sep 2024 12:38:53 +0330 Subject: [PATCH 1/2] fix: query updated to use platform agnostic raw data! --- utils/mongo_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mongo_base.py b/utils/mongo_base.py index 7792f72..c760b2f 100644 --- a/utils/mongo_base.py +++ b/utils/mongo_base.py @@ -14,7 +14,7 @@ def get_raw_data_count(self, from_date: datetime): raw_data_count = client[self.platform_id][ "rawmemberactivities" - ].count_documents({"createdDate": {"$gte": from_date}}) + ].count_documents({"date": {"$gte": from_date}}) return raw_data_count def get_guild_members_count(self) -> int: From 74aca150d628c8265ec92f84d1cccfaa34a83401 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Mon, 16 Sep 2024 13:49:41 +0330 Subject: [PATCH 2/2] fix: using a fixed version of each dependency! --- requirements.txt | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/requirements.txt b/requirements.txt index 6235ba5..dca2915 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,9 @@ -streamlit -streamlit-authenticator -numpy -pandas -matplotlib -python-dotenv -pymongo -pytest -coverage +streamlit==1.31.1 +streamlit-authenticator==0.3.1 +numpy==1.26.4 +pandas==2.2.1 +matplotlib==3.8.3 +python-dotenv==1.0.1 +pymongo==4.6.2 +pytest==8.0.2 +coverage==7.4.3