Skip to content

Commit

Permalink
Update src/migmose/parsing.py
Browse files Browse the repository at this point in the history
Co-authored-by: konstantin <konstantin.klein@hochfrequenz.de>
  • Loading branch information
DeltaDaniel and hf-kklein authored Oct 7, 2024
1 parent ffb4fce commit f37f9b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/migmose/parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ def parse_raw_nachrichtenstrukturzeile(input_path: Path) -> list[str]:


def _extract_document_version(path: Path | str) -> str:
document_str = str(path)
if isinstance(path, str):
document_str = path
else:
document_str = str(path)
matches = _pattern.search(document_str)
if matches:
document_version = matches.group(1)
Expand Down

0 comments on commit f37f9b4

Please sign in to comment.