- 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.
23 lines
785 B
Python
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.")
|
|
|