Commit 56592f24 authored by Eric Duminil's avatar Eric Duminil
Browse files

FIXME

parent a7f4ea9a
...@@ -23,6 +23,7 @@ def parse_atom_georss(bundesland: Bundesland) -> list[ZipFile]: ...@@ -23,6 +23,7 @@ def parse_atom_georss(bundesland: Bundesland) -> list[ZipFile]:
raise ValueError("No date has been found") raise ValueError("No date has been found")
source_date = datetime.strptime(updated_date, "%Y-%m-%dT%H:%M:%SZ") source_date = datetime.strptime(updated_date, "%Y-%m-%dT%H:%M:%SZ")
for file_elem in root.findall("atom:entry/atom:link", ns): for file_elem in root.findall("atom:entry/atom:link", ns):
# FIXME: href can be relative too. To what?
href = file_elem.attrib["href"] href = file_elem.attrib["href"]
# TODO: Check if source_date is specified for each ZipFile # TODO: Check if source_date is specified for each ZipFile
if href.endswith(".zip"): if href.endswith(".zip"):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment