Skip to content

Commit

Permalink
[ares] statutar nemusi mit nazev
Browse files Browse the repository at this point in the history
  • Loading branch information
kokes committed Jul 29, 2024
1 parent 6f93db1 commit 7947fc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion data/ares/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ def obj(root):


def organi(root, ico, nsmap):
nazev = root.find("./are:Nazev", namespaces=nsmap).text
# ICO 1112 ma prazdny nazev statutaru
nazev_el = root.find("./are:Nazev", namespaces=nsmap)
nazev = nazev_el.text if nazev_el is not None else None

fosoby, posoby = [], []
for cl in root.findall("./are:Clen", namespaces=nsmap):
Expand Down
2 changes: 1 addition & 1 deletion data/ares/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"posoby",
meta,
Column("ico", Integer, nullable=False, index=True),
Column("nazev_organu", Text, nullable=False),
Column("nazev_organu", Text, nullable=True),
Column("datum_zapisu", Date, nullable=False),
Column("datum_vymazu", Date, nullable=True),
Column("nazev_funkce", Text, nullable=True),
Expand Down

0 comments on commit 7947fc0

Please sign in to comment.