diff options
-rw-r--r-- | server/piztor/import.py | 2 | ||||
-rw-r--r-- | server/piztor/mesg_sender.py | 3 | ||||
-rw-r--r-- | 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) |