fix in remove_archive

This commit is contained in:
Anand Doshi 2012-02-21 16:46:57 +05:30
parent 5ff541b53c
commit 62a3872480

View File

@ -15,7 +15,7 @@ def execute():
res = webnotes.conn.sql("SELECT name FROM `%s`" % tab)
for dn in res:
archive.archive_doc(dt, dn[0], restore=1)
count++
count += 1
if not count%100:
webnotes.conn.commit()
webnotes.conn.begin()