summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--For Weekly Test/19-08-2011/DbClass.py4
-rw-r--r--For Weekly Test/19-08-2011/gsmselftest1.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/For Weekly Test/19-08-2011/DbClass.py b/For Weekly Test/19-08-2011/DbClass.py
index cccf736..f0ce624 100644
--- a/For Weekly Test/19-08-2011/DbClass.py
+++ b/For Weekly Test/19-08-2011/DbClass.py
@@ -154,10 +154,10 @@ class DBMySQLConnection:
else:
return 0
- def updatePingResult(self, taskNo, sipServer, sipGate, sipLoc, gsmBox1, gsmBox2):
+ 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, sipLoc=%i, gsmBox1=%i, gsmBox2=%i WHERE taskNo=%i"%(int(sipServer), int(sipGate), int(sipLoc), int(gsmBox1), int(gsmBox2), int(taskNo)))
+ successful = self.cur.execute("UPDATE PingResultTable SET sipServer=%i, sipGate=%i, sipLoc=%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:
diff --git a/For Weekly Test/19-08-2011/gsmselftest1.py b/For Weekly Test/19-08-2011/gsmselftest1.py
index 100646a..bff1574 100644
--- a/For Weekly Test/19-08-2011/gsmselftest1.py
+++ b/For Weekly Test/19-08-2011/gsmselftest1.py
@@ -49,7 +49,7 @@ def allPing():
sipServer = server.ping(3)
server = PingClass.Ping('132.230.252.228')
- sipLoc = server.ping(3)
+ unisip = server.ping(3)
server = PingClass.Ping('localhost')
gsmBox1 = server.ping(3)