summaryrefslogtreecommitdiffstats
path: root/For Weekly Test
diff options
context:
space:
mode:
authortt412011-08-27 08:48:50 +0200
committertt412011-08-27 08:48:50 +0200
commite941ea9949e33da07963fa3aecd8e729738b2d61 (patch)
treef30b70944996438572d9250ab138406cd0dd133d /For Weekly Test
parentnothing (diff)
downloadgsm-selftest-e941ea9949e33da07963fa3aecd8e729738b2d61.tar.gz
gsm-selftest-e941ea9949e33da07963fa3aecd8e729738b2d61.tar.xz
gsm-selftest-e941ea9949e33da07963fa3aecd8e729738b2d61.zip
found bugs on DB class, for checking task on temp task table.previous class always return 1 even we dont have any job to do.
Diffstat (limited to 'For Weekly Test')
-rw-r--r--For Weekly Test/19-08-2011/DbClass.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/For Weekly Test/19-08-2011/DbClass.py b/For Weekly Test/19-08-2011/DbClass.py
index e5ef961..1264656 100644
--- a/For Weekly Test/19-08-2011/DbClass.py
+++ b/For Weekly Test/19-08-2011/DbClass.py
@@ -64,14 +64,15 @@ class DBMySQLConnection:
#parse the output from the mysql by creating a list
#with lists where each attribue(column) gets independent
#element of the list
-
+
for record in output:
columns = list()
for entry in record:
columns.append(str(entry))
#columns.append(str(0))
self.tasksList.append(columns)
- return 1
+
+ return 1
except MySQLdb.Error, e:
error = str(e)
if error[1:5] == '1146':