bmc_hub/fix_time_modal.py
Christian bc504b9257 feat: Add subscription management functionality and AnyDesk API integration
- Implemented subscription creation, updating, and rendering in script_9.js.
- Added functions for handling subscription line items, product selection, and total calculations.
- Integrated AnyDesk API for session management in test_anydesk.py.
- Created REST client test requests for API endpoints in api.http.
- Developed a script to check ESET machine status and save details in tmp_check_eset_machine.py.
2026-03-30 07:50:15 +02:00

23 lines
785 B
Python

with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f:
text = f.read()
bad_str = """ } timer`;
}
}
// Add listeners safely
document.addEventListener('DOMContentLoaded', () => {
bindTimeModalCalculations(); const solAddTime = document.getElementById('sol_add_time');"""
good_str = """
// Add listeners safely
document.addEventListener('DOMContentLoaded', () => {
bindTimeModalCalculations();
const solAddTime = document.getElementById('sol_add_time');"""
text = text.replace(bad_str, good_str)
with open('app/modules/sag/templates/detail.html', 'w', encoding='utf-8') as f:
f.write(text)
print("Fixed stray timer characters.")