From e1e77608deead325e265007fc1a7129612468a20 Mon Sep 17 00:00:00 2001 From: Teddy Date: Fri, 30 Aug 2013 22:01:53 +0800 Subject: ... --- server/piztor/import.py | 2 +- server/piztor/mesg_sender.py | 3 +-- server/piztor/server.py | 2 +- 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) -- cgit v1.2.3-70-g09d2