Fixed get_nations returning nothing
This commit is contained in:
@@ -30,7 +30,7 @@ def create_server(name, port, channel):
|
|||||||
|
|
||||||
def get_nations():
|
def get_nations():
|
||||||
# TODO mod support
|
# TODO mod support
|
||||||
nation_string = str(subprocess.check_output([SERVER_PATH, "--listnations"]))
|
nation_string = subprocess.check_output([SERVER_PATH, "--listnations"]).decode()
|
||||||
nations = {}
|
nations = {}
|
||||||
current_era = None
|
current_era = None
|
||||||
for line in nation_string.splitlines():
|
for line in nation_string.splitlines():
|
||||||
|
|||||||
Reference in New Issue
Block a user