summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-30 22:01:53 +0800
committerTeddy <[email protected]>2013-08-30 22:01:53 +0800
commite1e77608deead325e265007fc1a7129612468a20 (patch)
tree2bb64380831acd4861b28cb1175ec9153c887606
parenta6b57b7cd05f150f3f0a84d756234a09a7611a34 (diff)
...
-rw-r--r--server/piztor/import.py2
-rw-r--r--server/piztor/mesg_sender.py3
-rw-r--r--server/piztor/server.py2
3 files changed, 3 insertions, 4 deletions
diff --git a/server/piztor/import.py b/server/piztor/import.py
index 9cce03f..b756708 100644
--- a/server/piztor/import.py
+++ b/server/piztor/import.py
@@ -2,7 +2,7 @@ from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
from model import *
-path = "root:helloworld@localhost/piztor2"
+path = "root:helloworld@localhost/piztor"
class UserData:
def __init__(self, username, nickname, password, comp_no, sec_no, sex, sub):
diff --git a/server/piztor/mesg_sender.py b/server/piztor/mesg_sender.py
index ef4c1f7..bbb112e 100644
--- a/server/piztor/mesg_sender.py
+++ b/server/piztor/mesg_sender.py
@@ -23,6 +23,5 @@ token = user_auth(username, password)
send_text_mesg(token, username, mesg)
send_text_mesg(token, username, "a")
send_text_mesg(token, username, "the last")
-update_location(token, username, random(), random())
-update_location(token, username, random(), random())
+update_location(token, username, 31.028616, 121.434661)
logout(token, username)
diff --git a/server/piztor/server.py b/server/piztor/server.py
index aa5d72c..d2d1974 100644
--- a/server/piztor/server.py
+++ b/server/piztor/server.py
@@ -19,7 +19,7 @@ from model import *
def get_hex(data):
return "".join([hex(ord(c))[2:].zfill(2) for c in data])
-db_path = "root:helloworld@localhost/piztor2"
+db_path = "root:helloworld@localhost/piztor"
#db_path = "piztor.sqlite"
FORMAT = "%(asctime)-15s %(message)s"
logging.basicConfig(format = FORMAT)