fix(competitor-analysis): final migration fixes and documentation updates
This commit is contained in:
@@ -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
16
patch_syntax.py
Normal 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")
|
||||
Reference in New Issue
Block a user