From 63e992021c838cfaf1b5dda4ef3ab69a460ba710 Mon Sep 17 00:00:00 2001 From: sipp11 Date: Wed, 13 Aug 2014 18:03:44 +0700 Subject: [PATCH] [s7] bug fix --- s7.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/s7.py b/s7.py index 2f97222..3099c48 100755 --- a/s7.py +++ b/s7.py @@ -111,7 +111,8 @@ def get_by_group(model_name, step, **kwargs): calibrator = first[:] for r in rows: count += 1 - _r = r[:] + # มันดันเอาค่าที่รวมๆ ไปทำ YYNN ด้วยก็เลยตัด col สุดท้ายออก แค่นั้นแหละ + _r = r[:-1] _r[0] = '%s_%s' % (new_prefix, count) for i in xrange(5, len(_r)): # get rid of asterik first