Skip to content

Commit

Permalink
fix [lint]: trying more!
Browse files Browse the repository at this point in the history
  • Loading branch information
amindadgar committed Feb 29, 2024
1 parent 59ad411 commit d523213
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion utils/mongo_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 4 additions & 2 deletions utils/process_guild_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d523213

Please sign in to comment.