add type checking, error handling, fix search issue. Closes #3 Closes #4 Fixes #3 Fixes #4

This commit is contained in:
2025-04-28 15:36:29 +02:00
parent 424411b077
commit 8c68655f9f
5 changed files with 72 additions and 52 deletions

View File

@@ -67,7 +67,7 @@ class Book:
self.location = value.split(",")[0] if "," in value else value
self.publisher = value.split(",")[1] if "," in value else ""
elif key == "Standnummer":
self.signature = value
self.signature = value.strip()
elif key == "Interne Vermerke":
self.internal_notes = value
@@ -212,7 +212,7 @@ def elsa_word_to_csv(path):
data = [
row for row in df.itertuples(index=False, name=None) if row != tuples[doctype]
]
# print(data)
# logger.debug(data)
return tuple_to_dict(data, doctype), doctype