Skip to content
This repository has been archived by the owner on Nov 12, 2018. It is now read-only.

Commit

Permalink
#31 Fix farm_cemetery
Browse files Browse the repository at this point in the history
  • Loading branch information
eigenein committed Aug 20, 2016
1 parent 1d12add commit ddcafbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions epicbot/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def farm_cemetery(self) -> Tuple[Counter, Counter]:
"""
Collects died enemy army.
"""
result, state = self.post("cemeteryFarm")
result, state = self.post("cemeteryFarm", True)
return self.parse_resource_field(result["reward"]), self.parse_resource_field(state)

def get_buildings(self) -> List[Building]:
Expand Down Expand Up @@ -342,7 +342,7 @@ def parse_resource_field(self, result: Optional[dict]) -> Counter:
"""
Helper method to parse resource collection result.
"""
assert isinstance(result, dict) and "resource" in result
assert isinstance(result, dict) and "resource" in result, result
return self.parse_resources(result["resource"])

@staticmethod
Expand Down
1 change: 0 additions & 1 deletion epicbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def __init__(self, context: epicbot.utils.Context, api: Api, library: epicbot.li
# Self info.
self.caption = None # type: str
self.resources = Counter()
self.cemetery = []
self.research = {} # type: Dict[UnitType, int]
self.artifacts = [] # type: Set[ArtifactType]
self.alliance_members = [] # type: List[AllianceMember]
Expand Down

0 comments on commit ddcafbd

Please sign in to comment.