appraisal, don't validate points for self-appraisal

This commit is contained in:
Rushabh Mehta
2013-01-19 10:54:03 +05:30
parent f2223102e2
commit 3ab6c5fca9
4 changed files with 39 additions and 29 deletions

View File

@@ -2,11 +2,12 @@ import webnotes
def execute():
webnotes.reload_doc("core", "doctype", "patch_log")
for d in webnotes.conn.sql("""select patch from __PatchLog"""):
webnotes.doc({
"doctype": "Patch Log",
"patch": d[0]
}).insert()
if webnotes.conn.table_exists("__PatchLog"):
for d in webnotes.conn.sql("""select patch from __PatchLog"""):
webnotes.doc({
"doctype": "Patch Log",
"patch": d[0]
}).insert()
webnotes.conn.commit()
webnotes.conn.sql("drop table __PatchLog")
webnotes.conn.commit()
webnotes.conn.sql("drop table __PatchLog")