Fix server import

This commit is contained in:
Arthur Golubtsov
2020-06-03 08:11:41 +03:00
parent 1a0441116b
commit 521df27243
7 changed files with 32 additions and 29 deletions

View File

@@ -38,7 +38,7 @@ ConfigOption = collections.namedtuple("ConfigOption", ["section", "option", "val
class Server(messaging.Singleton):
def __init__(self, server_id=None, config_path="../config/server.ini"):
def __init__(self, config_path="../config/server.ini", server_id=None):
self.id = server_id if server_id else str(random.randint(0, 9999)).zfill(4)
self.time_started = 0