def update_patch_log(patchmodule):
 frappe.get_doc({u'doctype': u'Patch Log', u'patch': patchmodule}).insert()

def update_patch_log ( patchmodule ) : frappe . get_doc ( { u'doctype' : u'Patch Log' , u'patch' : patchmodule } ) . insert ( )
update patch_file in patch log .