sync_manager.py aktualisiert
This commit is contained in:
@@ -62,6 +62,13 @@ class SyncManager:
|
|||||||
"""
|
"""
|
||||||
Kapselt die Logik für den Abgleich zwischen D365-Export und Google Sheet.
|
Kapselt die Logik für den Abgleich zwischen D365-Export und Google Sheet.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
def _normalize_text_for_comparison(self, text: str) -> str:
|
||||||
|
"""Normalisiert einen Text, um irrelevante Whitespace-Unterschiede zu ignorieren."""
|
||||||
|
if not isinstance(text, str): text = str(text)
|
||||||
|
# Ersetze Windows-Zeilenumbrüche, dann fasse alle Whitespace-Arten zusammen und trimme
|
||||||
|
return " ".join(text.replace('\r\n', '\n').split())
|
||||||
|
|
||||||
def __init__(self, sheet_handler, d365_export_path):
|
def __init__(self, sheet_handler, d365_export_path):
|
||||||
self.sheet_handler = sheet_handler
|
self.sheet_handler = sheet_handler
|
||||||
self.d365_export_path = d365_export_path
|
self.d365_export_path = d365_export_path
|
||||||
|
|||||||
Reference in New Issue
Block a user