- Add extra positive/negative prompt textareas to all 9 detail pages with session persistence - Add Endless generation button to all detail pages (continuous preview generation until stopped) - Default character selector to "Random Character" on all secondary detail pages - Fix queue clear endpoint (remove spurious auth check) - Refactor app.py into routes/ and services/ modules - Update CLAUDE.md with new architecture documentation - Various data file updates and cleanup Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
18 lines
448 B
Python
18 lines
448 B
Python
import glob
|
|
import re
|
|
|
|
files = glob.glob('templates/*/detail.html') + ['templates/detail.html']
|
|
|
|
for filepath in files:
|
|
with open(filepath, 'r') as f:
|
|
content = f.read()
|
|
|
|
# remove literal backslashes before single quotes
|
|
content = content.replace(r"\'", "'")
|
|
|
|
# remove literal backslashes before double quotes if any
|
|
content = content.replace(r'\"', '"')
|
|
|
|
with open(filepath, 'w') as f:
|
|
f.write(content)
|