Skip to content
This repository was archived by the owner on May 2, 2023. It is now read-only.

Commit fc7db71

Browse files
jackbaylissduchian
andcommitted
fix : mission list
This will prevent missions being shown from the chat, or any hidden or deleted missions- this should stop any alliance missions being dragged in. Co-Authored-By: duchian <[email protected]>
1 parent d18bd45 commit fc7db71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: botfiles/missionchief_bot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def buildMissions(self):
119119
print("Building New Missions")
120120
logger.debug("Grabbing mission urls and hrefs")
121121
browser.get(url)
122-
links = browser.find_elements_by_xpath("//a[contains(@href,'missions')]")
122+
links = browser.find_elements_by_xpath("//div[contains(@id,'missions')]/div/div[not(contains(@class,'mission_alliance_distance_hide') or contains(@class,'mission_deleted'))]/div/div/a[contains(@href,'missions')]")
123123
checked = 0
124124
currBatchNum = 0
125125
for link in links:

0 commit comments

Comments
 (0)