Skip to content
This repository was archived by the owner on Mar 11, 2022. It is now read-only.

Commit 40a77d1

Browse files
authored
Update bot_functions.py
1 parent 1d33da3 commit 40a77d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eSim/Help_functions/bot_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ async def get_battle_id(server, battle_id, priorize_my_country=False):
7373
if priorize_my_country:
7474
sides = [x.replace("xflagsMedium xflagsMedium-", "").replace("-", " ").lower() for x in
7575
tree.xpath('//tr//td[1]//div//div//div/@class') if "xflagsMedium" in x]
76-
for _id, sides in (battle_id, sides):
76+
for _id, sides in zip(battle_id, sides):
7777
if apiCitizen["citizenship"].lower() in sides:
7878
return _id.replace("battle.html?id=", "")
7979
return battle_id[0].replace("battle.html?id=", "") or None

0 commit comments

Comments
 (0)