Skip to content

Commit

Permalink
try adding hero & equipment data to wars
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 18, 2024
1 parent 07910f8 commit cd47a31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamewide/war/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ async def get_war(clan_tag : str):
member["heroes"] = player_data.get(member["tag"], {}).get("heroes", [])

for member in war_raw_data["opponent"]["members"]:
member["heroes"] = player_data.get(member["tag"], [])
member["heroes"] = player_data.get(member["tag"], {}).get("heroes", [])

custom_id = hashids.encode(int(war.preparation_start_time.time.replace(tzinfo=pend.UTC).timestamp()) + int(pend.now(tz=pend.UTC).timestamp()) + random.randint(1000000000, 9999999999))
await db_client.clan_wars.update_one({"war_id": war_unique_id},
Expand Down

0 comments on commit cd47a31

Please sign in to comment.