We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfce7f1 commit 6854240Copy full SHA for 6854240
avwx_swift/notam.py
@@ -35,7 +35,7 @@ def get_raw_text(data: dict | list[dict]) -> str:
35
data = next(item for item in data if "formattedText" in item["NOTAMTranslation"])
36
raw: str
37
try:
38
- raw = data["NOTAMTranslation"]["formattedText"]["div"]
+ raw = data["NOTAMTranslation"]["formattedText"]["div"]["#text"]
39
# Replace newlines and remove all other HTML tags
40
raw = raw.replace("<BR>", "\n")
41
raw = re.sub(r"<.*?>", "", raw)
0 commit comments