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

Commit

Permalink
fix : mission list
Browse files Browse the repository at this point in the history
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 <duchian@users.noreply.github.com>
  • Loading branch information
jackbayliss and duchian committed Apr 6, 2020
1 parent d18bd45 commit fc7db71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion botfiles/missionchief_bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def buildMissions(self):
print("Building New Missions")
logger.debug("Grabbing mission urls and hrefs")
browser.get(url)
links = browser.find_elements_by_xpath("//a[contains(@href,'missions')]")
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')]")
checked = 0
currBatchNum = 0
for link in links:
Expand Down

0 comments on commit fc7db71

Please sign in to comment.