1
0
Fork 0

skip logging about ignored tags

This commit is contained in:
Mateusz Konieczny 2024-10-21 08:19:34 +02:00
parent a1735fdd69
commit eda13885b0

6
qa.py
View file

@ -125,10 +125,12 @@ def remove_bad_data(data, atp_code):
for key in list(data.keys()):
if "</span>" in data.get(key):
print(atp_code, "has", key, "=", data[key])
if config.is_bogus_key_worth_mentioning(key, atp_code):
print(atp_code, "has", key, "=", data[key])
return None
elif "<" in data.get(key) or ">" in data.get(key):
print(atp_code, "has", key, "=", data[key])
if config.is_bogus_key_worth_mentioning(key, atp_code):
print(atp_code, "has", key, "=", data[key])
if key in ['nsi_id']:
# not sure why they put
# nsi_id=N/A