E-Mail/Kontakte: Lead-Tabellen auch in der Freigabe

Auf Dejans Wunsch. Die CSVs bleiben außerhalb von Git in .docs/leads/,
pages_bauen.py lädt sie nach pages-daten/leads/ hinter das Passwort.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
dejanandClaude Opus 5.5 committed 2026-11-12 22:42:06 +01:00
1 parent 12cc297a41
commit 250fce4731
3 files changed
+27 -10

No files matched your search

+9
View File
@@ -78,6 +78,15 @@ def main():
auskunft = oeffentlich / "pages-daten"
auskunft.mkdir(parents=True)
# Leads mit Namen und Adressen (Seite E-Mail → Kontakte). Liegen bewusst nicht
# in Git, sondern nur in .docs/leads/, und kommen von dort direkt in die
# Freigabe, hinter dasselbe Passwort wie alles andere (Dejan, 12.11.2026).
leads = sorted((HUB / ".docs" / "leads").glob("*.csv"))
if leads:
(auskunft / "leads").mkdir()
for datei in leads:
shutil.copy2(datei, auskunft / "leads" / datei.name)
print("Leads mit hochgeladen: %s" % ", ".join(d.name for d in leads))
for name, inhalt in (("dokumente", dokumente), ("stand", stand), ("suche", index)):
(auskunft / (name + ".json")).write_text(json.dumps(inhalt, ensure_ascii=False), encoding="utf-8")
# Ohne 404.html hält Pages die Seite für eine Single-Page-App und liefert