block/external: remove vantage point filtering

This commit is contained in:
Iain Learmonth 2022-10-15 05:50:04 +01:00
parent 0cc6cf0eda
commit 4d2b4e7bdd

View file

@ -25,7 +25,7 @@ class BlockExternalAutomation(BlockMirrorAutomation):
div = soup.find_all('div', class_="overflow-auto mb-5") div = soup.find_all('div', class_="overflow-auto mb-5")
i = 0 i = 0
for idx, heading in enumerate(h2): for idx, heading in enumerate(h2):
if not div[idx].div and heading.text in app.config['EXTERNAL_VANTAGE_POINTS']: if not div[idx].div:
anchors = div[idx].find_all('a') anchors = div[idx].find_all('a')
for anchor in anchors: for anchor in anchors:
self.patterns.append("https://" + anchor.text) self.patterns.append("https://" + anchor.text)