sync_manager.py aktualisiert
This commit is contained in:
@@ -146,7 +146,7 @@ class SyncManager:
|
|||||||
if not row_indices.empty:
|
if not row_indices.empty:
|
||||||
row_idx = row_indices[0]
|
row_idx = row_indices[0]
|
||||||
updates_to_batch.append({
|
updates_to_batch.append({
|
||||||
"range": f"{COLUMN_MAP['Archiviert']['Titel']}{row_idx + 2}",
|
"range": f"{self.target_sheet_name}!{COLUMN_MAP['Archiviert']['Titel']}{row_idx + 2}", # <<< NEU: Sheet-Name hinzugefügt
|
||||||
"values": [["TRUE"]]
|
"values": [["TRUE"]]
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -194,7 +194,7 @@ class SyncManager:
|
|||||||
row_idx = gsheet_indexed.index.get_loc(crm_id)
|
row_idx = gsheet_indexed.index.get_loc(crm_id)
|
||||||
for col_name, value in row_updates.items():
|
for col_name, value in row_updates.items():
|
||||||
updates_to_batch.append({
|
updates_to_batch.append({
|
||||||
"range": f"{COLUMN_MAP[col_name]['Titel']}{row_idx + 2}",
|
"range": f"{self.target_sheet_name}!{COLUMN_MAP[col_name]['Titel']}{row_idx + 2}", # <<< NEU: Sheet-Name hinzugefügt
|
||||||
"values": [[value]]
|
"values": [[value]]
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ class SyncManager:
|
|||||||
if rows_to_append:
|
if rows_to_append:
|
||||||
self.logger.info(f"Füge {len(rows_to_append)} neue Zeilen zum Google Sheet hinzu...")
|
self.logger.info(f"Füge {len(rows_to_append)} neue Zeilen zum Google Sheet hinzu...")
|
||||||
# --- KORREKTUR HIER ---
|
# --- KORREKTUR HIER ---
|
||||||
self.sheet_handler.append_rows(values=rows_to_append)
|
self.sheet_handler.append_rows(values=rows_to_append, sheet_name=self.target_sheet_name)
|
||||||
|
|
||||||
if updates_to_batch:
|
if updates_to_batch:
|
||||||
self.logger.info(f"Sende {len(updates_to_batch)} Zell-Updates an das Google Sheet...")
|
self.logger.info(f"Sende {len(updates_to_batch)} Zell-Updates an das Google Sheet...")
|
||||||
|
|||||||
Reference in New Issue
Block a user