From 4f8c1a14e6dd5f991643835a73e04d3e6f7faad7 Mon Sep 17 00:00:00 2001 From: nabinhait Date: Fri, 24 Jun 2011 15:26:37 +0530 Subject: [PATCH] updated reposting_tool --- tools/doctype/reposting_tool/reposting_tool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/doctype/reposting_tool/reposting_tool.py b/tools/doctype/reposting_tool/reposting_tool.py index 1ad54dd7af..b4d542141c 100644 --- a/tools/doctype/reposting_tool/reposting_tool.py +++ b/tools/doctype/reposting_tool/reposting_tool.py @@ -110,13 +110,13 @@ class DocType: def repair_all_bins(self): bins = sql("select name from tabBin") cnt = 0 - for bin in bins[0]: + for bin in bins: if cnt % 20 == 0: sql("commit") sql("start transaction") cnt += 1 - self.repair_bin(bin) + self.repair_bin(bin[0]) # ============================================================================= def repair_opening_bal(self, d, acc_obj, past_yr, fiscal_yr):