[30388f42] Infrastructure Hardening: Repaired CE/Connector DB schema, fixed frontend styling build, implemented robust echo shield in worker v2.1.1, and integrated Lead Engine into gateway.

This commit is contained in:
2026-03-07 14:08:42 +00:00
parent efcaa57cf0
commit ae2303b733
404 changed files with 24100 additions and 13301 deletions

View File

@@ -0,0 +1,42 @@
# -*- coding: utf-8 -*-
import sys
def clean_file(filepath):
print(f"Cleaning {filepath}...")
try:
with open(filepath, 'r', encoding='utf-8') as f:
content = f.read()
# Replacements map
replacements = {
'\u2013': '-', # En-dash -> Hyphen
'\u20ac': 'EUR', # Euro -> EUR
'\u2192': '->', # Arrow -> ->
'\u201c': '"', # Smart quotes
'\u201d': '"',
'\u2018': "'",
'\u2019': "'"
}
original_len = len(content)
for char, replacement in replacements.items():
content = content.replace(char, replacement)
with open(filepath, 'w', encoding='utf-8') as f:
f.write(content)
print(f"Done. Replaced special characters.")
# Verification check
try:
compile(content, filepath, 'exec')
print("Syntax Check: OK")
except SyntaxError as e:
print(f"Syntax Check: FAILED - {e}")
except Exception as e:
print(f"Error: {e}")
if __name__ == "__main__":
clean_file("b2b_marketing_orchestrator.py")