Skip to content

Commit 773d140

Browse files
Merge pull request #185 from mathsman5133/add_stars_to_raid_attack
fix missing stars attribute bug
2 parents 2fde46f + 34bd348 commit 773d140

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coc/raid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ def _from_data(self, data: dict) -> None:
183183
self.attacker_tag = data["attacker"]["tag"]
184184
self.attacker_name = data["attacker"]["name"]
185185
self.destruction = data["destructionPercent"]
186+
self.stars = data["stars"]
186187

187188
@property
188189
def attacker(self) -> "RaidMember":
@@ -251,7 +252,6 @@ def __repr__(self):
251252
("destruction", self.destruction)]
252253
return "<%s %s>" % (self.__class__.__name__, " ".join("%s=%r" % t for t in attrs),)
253254

254-
255255
def __init__(self, *, data, client, raid_log_entry, raid_clan):
256256
self.id: int = data.get("id")
257257
self.name: str = data.get("name")

0 commit comments

Comments
 (0)