From d523213b95b15ac22021b84c0b1d7ca99e874ab7 Mon Sep 17 00:00:00 2001 From: Mohammad Amin Date: Thu, 29 Feb 2024 17:33:46 +0330 Subject: [PATCH] fix [lint]: trying more! --- utils/mongo_utils.py | 2 +- utils/process_guild_data.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/utils/mongo_utils.py b/utils/mongo_utils.py index 6421881..e476850 100644 --- a/utils/mongo_utils.py +++ b/utils/mongo_utils.py @@ -45,7 +45,7 @@ def get_latest_fired_saga( }, ) elif guild_id: - fetched_platform_id = self.get_guild_platform_id(guild_id) + fetched_platform_id = self.get_guild_platform_id() latest_document = self.get_latest_document( db_name="Saga", collection_name="sagas", diff --git a/utils/process_guild_data.py b/utils/process_guild_data.py index bf6919c..1a02ffb 100644 --- a/utils/process_guild_data.py +++ b/utils/process_guild_data.py @@ -3,8 +3,10 @@ from utils.mongo_utils import MongoUtils -def process_guild_data(platform_document: dict) -> dict[str, str | datetime | None]: - +def process_guild_data(platform_document: dict) -> dict[str, str | int | datetime | None]: + """ + process each platform and prepare the analytics for it + """ platform_id = str(platform_document["_id"]) guild_id = platform_document["metadata"]["id"] utils = MongoUtils(guild_id)