- 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.
20 lines
593 B
Python
20 lines
593 B
Python
import re
|
|
|
|
with open('app/modules/sag/templates/detail.html', 'r', encoding='utf-8') as f:
|
|
text = f.read()
|
|
|
|
# Define getTimeV1EmployeeId
|
|
func_def = """ function getTimeV1EmployeeId() {
|
|
const val = document.getElementById('timeV1EmployeeId')?.value;
|
|
return val ? Number(val) : null;
|
|
}
|
|
|
|
async function createManualTimeV1(event) {"""
|
|
|
|
text = text.replace(" async function createManualTimeV1(event) {", func_def)
|
|
|
|
with open('app/modules/sag/templates/detail.html', 'w', encoding='utf-8') as f:
|
|
f.write(text)
|
|
|
|
print("function defined")
|