forked from MarseyWorld/MarseyWorld
quick fix to complies_with_chud
parent
271e585b8d
commit
51e8122b19
|
@ -624,8 +624,9 @@ def complies_with_chud(obj):
|
||||||
|
|
||||||
tags = soup.html.body.find_all('p', recursive=False)
|
tags = soup.html.body.find_all('p', recursive=False)
|
||||||
|
|
||||||
for x in tags:
|
for tag in tags:
|
||||||
if obj.author.agendaposter_phrase in str(x.find(text=True, recursive=False)):
|
for text in tag.find_all(text=True, recursive=False):
|
||||||
return True
|
if obj.author.agendaposter_phrase in text:
|
||||||
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Reference in New Issue