The license.txt file has been replaced with LICENSE for quite a while now. INAL but it didn't seem accurate to say "hey, checkout license.txt although there's no such file". Apart from this, there were inconsistencies in the headers altogether...this change brings consistency.
14 lines
No EOL
449 B
Python
14 lines
No EOL
449 B
Python
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
|
|
# License: MIT. See LICENSE
|
|
|
|
import frappe, json
|
|
|
|
@frappe.whitelist()
|
|
def update_task(args, field_map):
|
|
"""Updates Doc (called via gantt) based on passed `field_map`"""
|
|
args = frappe._dict(json.loads(args))
|
|
field_map = frappe._dict(json.loads(field_map))
|
|
d = frappe.get_doc(args.doctype, args.name)
|
|
d.set(field_map.start, args.start)
|
|
d.set(field_map.end, args.end)
|
|
d.save() |