diff options
author | Teddy <[email protected]> | 2013-09-02 15:55:35 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-09-02 15:55:35 +0800 |
commit | 7e474fb8d9b5006043d62692d828da9510eadd6c (patch) | |
tree | 46fa2cab5d7d3cc999c84f3290d62b4b94c4841f | |
parent | bbd31e455a23aa353350fe6407fa8c2f6799c06d (diff) |
rename the database
-rw-r--r-- | server/piztor/easy_import.py | 2 | ||||
-rw-r--r-- | server/piztor/game_server.py | 2 | ||||
-rw-r--r-- | 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, |