Explorer
/proc/2812445/root/tmp/patch_business_direction_explainer.py
← Zurück ↓ Download
from pathlib import Path
p=Path('/opt/struktur/projects-dashboard/app.py')
s=p.read_text()
s=s.replace("        'keywords': 'Business',\n", "        'keywords': 'Business',\n        'purpose': 'Recherche nach konkreten, verkaufbaren KI- und Automatisierungsleistungen fuer kleine und mittlere Unternehmen. Ziel ist es, wiederkehrende Kundenprobleme, umsetzbare Agenten-/Workflow-Ideen sowie standardisierbare Angebote mit realistischem Ertragspotenzial zu identifizieren.',\n", 1)
s=s.replace(".direction-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}", ".direction-purpose{max-width:1050px;color:#94a3b8;font-size:.84rem;line-height:1.55;margin:-.2rem 0 .85rem;padding:.75rem .9rem;background:#121722;border-left:3px solid #3b82f6;border-radius:6px}.direction-meta{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1rem}", 1)
s=s.replace("<h2>{{direction.title}}</h2><div class=\"direction-meta\">", "<h2>{{direction.title}}</h2><div class=\"direction-purpose\"><strong>Recherche-Zweck:</strong> {{direction.purpose}}</div><div class=\"direction-meta\">", 1)
p.write_text(s)
print('PATCH_OK')