diff options
author | Teddy <[email protected]> | 2013-09-02 14:46:19 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-09-02 14:46:19 +0800 |
commit | 71cb89b264fe02b131d32a5a497571d70f31197b (patch) | |
tree | 799695db326be4cdcf779926874ae780996fb3c9 | |
parent | a0dda37816df15e226def457e41ba6abfa778d63 (diff) |
..
-rw-r--r-- | server/piztor/easy_import.py | 2 | ||||
-rw-r--r-- | server/piztor/game_server.py (renamed from server/piztor/server.py) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/server/piztor/easy_import.py b/server/piztor/easy_import.py index b614315..2a050d8 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/piztor" +path = "root:helloworld@localhost/piztor2" class UserData: def __init__(self, username, nickname, password, diff --git a/server/piztor/server.py b/server/piztor/game_server.py index cbd80e4..cc1bd89 100644 --- a/server/piztor/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/piztor" +db_path = "root:helloworld@localhost/piztor2" #db_path = "piztor.sqlite" FORMAT = "%(asctime)-15s %(message)s" logging.basicConfig(format = FORMAT) @@ -55,7 +55,7 @@ _HEADER_SIZE = _SectionSize.LENGTH + \ _MAX_TEXT_MESG_SIZE = 1024 _MAX_SUB_LIST_SIZE = 10 _MAX_PENDING_PUSH = 10 -_INIT_MARKER_NUM = 2 +_INIT_MARKER_NUM = 5 class _OptCode: user_auth = 0x00 |