fix(competitor-analysis): final migration fixes and documentation updates

This commit is contained in:
2026-05-15 21:12:45 +00:00
parent 07e34808be
commit 74f35d3831
2 changed files with 18 additions and 2 deletions

View File

@@ -224,7 +224,7 @@ function App() {
return reminderResult.map(row => {
let einrichtung = selectedJob
? .replace(/\(JOB\d+\)/gi, '').replace(/Kindergarten/gi, '').replace(/\d{4}/g, '').replace(/\s+/g, ' ').trim()
? selectedJob.name.replace(/\(JOB\d+\)/gi, '').replace(/Kindergarten/gi, '').replace(/\d{4}/g, '').replace(/\s+/g, ' ').trim()
: "eurer Einrichtung";
let subject = emailSubject
.replace(/{Kindernamen}/g, row["Kindernamen"])
@@ -727,7 +727,7 @@ function App() {
const emailsToSend = reminderResult.map(row => {
let einrichtung = selectedJob
? .replace(/\(JOB\d+\)/gi, '').replace(/Kindergarten/gi, '').replace(/\d{4}/g, '').replace(/\s+/g, ' ').trim()
? selectedJob.name.replace(/\(JOB\d+\)/gi, '').replace(/Kindergarten/gi, '').replace(/\d{4}/g, '').replace(/\s+/g, ' ').trim()
: "eurer Einrichtung";
let subject = emailSubject
.replace(/{Kindernamen}/g, row["Kindernamen"])

16
patch_syntax.py Normal file
View File

@@ -0,0 +1,16 @@
import sys
with open('fotograf-de-scraper/frontend/src/App.tsx', 'r') as f:
content = f.read()
# Fix the syntax error: '? .replace' should be '? selectedJob.name.replace'
old_syntax = "? .replace(/\\(JOB\\d+\\)/gi, '')"
new_syntax = "? selectedJob.name.replace(/\\(JOB\\d+\\)/gi, '')"
if old_syntax in content:
content = content.replace(old_syntax, new_syntax)
with open('fotograf-de-scraper/frontend/src/App.tsx', 'w') as f:
f.write(content)
print("Syntax error fixed")
else:
print("Syntax error string not found")