|
|
@ -651,8 +651,9 @@ def calculate_total(data): |
|
|
|
variant['StepCount'] = step_count |
|
|
|
return data |
|
|
|
|
|
|
|
|
|
|
|
@frappe.whitelist() |
|
|
|
def update_publish_values(doc_name, field, value): |
|
|
|
frappe.db.sql(f''' |
|
|
|
update `tabPublish` set {field} = {value} where name = '{doc_name}';''') |
|
|
|
frappe.db.sql( |
|
|
|
f'''update `tabPublish` set version = 1.00 where name = 'THAR-en -2023-05-21 16:57:54.119826';''') |
|
|
|
frappe.db.commit() |