fix in remove_archive

This commit is contained in:
Anand Doshi 2012-02-21 17:30:36 +05:30
parent b8fa4a37e5
commit c70e8d9791

View File

@ -8,7 +8,7 @@ def execute():
from webnotes.utils import archive from webnotes.utils import archive
arc_tables = webnotes.conn.sql('show tables like "arc%"') arc_tables = webnotes.conn.sql('show tables like "arc%"')
try: try:
webnotes.conn.auto_commit_on_excess = 1 webnotes.conn.auto_commit_on_many_writes = 1
for tab in arc_tables: for tab in arc_tables:
tab = tab[0] tab = tab[0]
dt = tab[3:] dt = tab[3:]