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

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")