2026-03-05 08:41:59 +01:00
|
|
|
import re
|
|
|
|
|
|
2026-03-30 07:50:15 +02:00
|
|
|
with open('app/modules/sag/templates/detail.html', 'r') as f:
|
|
|
|
|
text = f.read()
|
2026-03-05 08:41:59 +01:00
|
|
|
|
2026-03-30 07:50:15 +02:00
|
|
|
# Let's verify the file content is around 6600 lines
|
|
|
|
|
print(f"Total lines: {len(text.splitlines())}")
|
2026-03-05 08:41:59 +01:00
|
|
|
|
2026-03-30 07:50:15 +02:00
|
|
|
# Search for the function renderTimeV1Timeline
|
|
|
|
|
match = re.search(r'function renderTimeV1Timeline\(entries\)\s*{.*?timeline\.innerHTML = Object\.entries\(grouped\).*?\}', text, re.DOTALL)
|
|
|
|
|
if match:
|
|
|
|
|
print(f"Found render function, length: {len(match.group(0))}")
|
|
|
|
|
else:
|
|
|
|
|
print(f"Could not find render function")
|
|
|
|
|
match = re.search(r'function renderTimeV1Timeline\(entries\)\s*{', text)
|
|
|
|
|
if match:
|
|
|
|
|
print("Found definition at index:", match.start())
|