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)