From 7e474fb8d9b5006043d62692d828da9510eadd6c Mon Sep 17 00:00:00 2001 From: Teddy Date: Mon, 2 Sep 2013 15:55:35 +0800 Subject: rename the database --- server/piztor/easy_import.py | 2 +- server/piztor/game_server.py | 2 +- server/piztor/import.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/piztor/easy_import.py b/server/piztor/easy_import.py index 2a050d8..44c8c52 100644 --- a/server/piztor/easy_import.py +++ b/server/piztor/easy_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_game" class UserData: def __init__(self, username, nickname, password, diff --git a/server/piztor/game_server.py b/server/piztor/game_server.py index 60b7015..f1003e0 100644 --- a/server/piztor/game_server.py +++ b/server/piztor/game_server.py @@ -20,7 +20,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_game" #db_path = "piztor.sqlite" FORMAT = "%(asctime)-15s %(message)s" logging.basicConfig(format = FORMAT) diff --git a/server/piztor/import.py b/server/piztor/import.py index e552c91..4caa8a9 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/piztor" +path = "root:helloworld@localhost/piztor_game" class UserData: def __init__(self, username, nickname, password, -- cgit v1.2.3