Skip to content

Commit

Permalink
Fixes?
Browse files Browse the repository at this point in the history
  • Loading branch information
Chats committed May 23, 2024
1 parent 36dbbd2 commit a26db84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/data/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ async def update_all(self):
self.raw_data[key]["data"] = responses[i]
self.raw_data[key]["update_time"] = int(time())
if key == "updates":
if (
self.raw_data[key]["data"]
.get("appnews", {})
.get("newsitems", {})
):
if not isinstance(self.raw_data[key]["data"], list):
# If pulling from steam, we gotta format, otherwise you're probably using my shit, so it's already formatted
# and we just leave it alone
self.raw_data[key]["data"] = await self.format_steam_news(
Expand Down
1 change: 1 addition & 0 deletions src/routes/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ async def get_all_raw(request: Request):
"season_pass_sv",
"season_pass_ce",
"season_pass_dd",
"season_pass_pp",
"minigame_leaderboard",
"player_leaderboard",
"commend_leaderboard",
Expand Down

0 comments on commit a26db84

Please sign in to comment.