summaryrefslogtreecommitdiffstats
path: root/For Weekly Test/tricode/DbClass.py
diff options
context:
space:
mode:
authorgsmselftest2011-10-21 23:18:49 +0200
committergsmselftest2011-10-21 23:18:49 +0200
commit3c6204d5539f89d1b42ba3ae049af2140ad34504 (patch)
treed53d9415c5897a3081ad5289f3042905a7746044 /For Weekly Test/tricode/DbClass.py
parentReport writing! (diff)
downloadgsm-selftest-3c6204d5539f89d1b42ba3ae049af2140ad34504.tar.gz
gsm-selftest-3c6204d5539f89d1b42ba3ae049af2140ad34504.tar.xz
gsm-selftest-3c6204d5539f89d1b42ba3ae049af2140ad34504.zip
last modification
Diffstat (limited to 'For Weekly Test/tricode/DbClass.py')
-rwxr-xr-xFor Weekly Test/tricode/DbClass.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/For Weekly Test/tricode/DbClass.py b/For Weekly Test/tricode/DbClass.py
index 8cde4e4..b130f68 100755
--- a/For Weekly Test/tricode/DbClass.py
+++ b/For Weekly Test/tricode/DbClass.py
@@ -163,7 +163,8 @@ class DBMySQLConnection:
def updatePingResult(self, taskNo, sipServer, sipGate, unisip, gsmBox1, gsmBox2):
if self.connectionCreated == 1:
try:
- successful = self.cur.execute("UPDATE PingResultTable SET sipServer=%i, sipGate=%i, unisip=%i, gsmBox1=%i, gsmBox2=%i WHERE taskNo=%i"%(int(sipServer), int(sipGate), int(unisip), int(gsmBox1), int(gsmBox2), int(taskNo)))
+ successful = self.cur.execute("INSERT INTO PingResultTable(taskNo, sipServer, sipGate, unisip, gsmBox1, gsmBox2) VALUES ('%i', '%i','%i', '%i','%i','%i')"%( int(taskNo),int(sipServer), int(sipGate), int(unisip), int(gsmBox1), int(gsmBox2)))
+ #successful = self.cur.execute("UPDATE PingResultTable SET sipServer=%i, sipGate=%i, unisip=%i, gsmBox1=%i, gsmBox2=%i WHERE taskNo=%i"%(int(sipServer), int(sipGate), int(unisip), int(gsmBox1), int(gsmBox2), int(taskNo)))
output = self.cur.fetchone()
if debugMode == 1: