From c7bca9e258280f2ef172c54ab0108ad9cc58ccdf Mon Sep 17 00:00:00 2001 From: EdvardGarmannslund Date: Mon, 24 Jun 2024 12:51:32 +0200 Subject: [PATCH 1/2] Fikset feil i xml text funksjon --- src/ssb_konjunk/xml_handling.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ssb_konjunk/xml_handling.py b/src/ssb_konjunk/xml_handling.py index a12999b..e9244dc 100644 --- a/src/ssb_konjunk/xml_handling.py +++ b/src/ssb_konjunk/xml_handling.py @@ -37,6 +37,7 @@ def return_txt_xml(root: ET.Element, child: str) -> str | None: Returns: str: Returns string value from child element. """ + string = None for element in root.iter(child): string = element.text return string From 592e243307bd69ae5c23b88ea547c08760b5c783 Mon Sep 17 00:00:00 2001 From: EdvardGarmannslund Date: Mon, 24 Jun 2024 12:57:58 +0200 Subject: [PATCH 2/2] Xml funk fikset --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index ecb5955..f06a025 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ssb-konjunk" -version = "0.0.7" +version = "0.0.8" description = "SSB Konjunk" authors = ["Edvard Garmannslund "] license = "MIT"