From: Christian Heller Date: Tue, 23 Feb 2016 21:58:33 +0000 (+0100) Subject: Server: Don't save world_db entries with keys that start non-uppercase. X-Git-Tag: tce~174 X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/pick_tasks?a=commitdiff_plain;h=c983c3c4288c671168248f7006296d7340e3d38f;p=plomrogue Server: Don't save world_db entries with keys that start non-uppercase. --- diff --git a/server/io.py b/server/io.py index 877e525..a79e548 100644 --- a/server/io.py +++ b/server/io.py @@ -184,7 +184,7 @@ def save_world(): for key in sorted(world_db.keys()): if (not isinstance(world_db[key], dict) and not isinstance(world_db[key], list)) and key != "MAP" and \ - key != "WORLD_ACTIVE": + key != "WORLD_ACTIVE" and key[0].isupper(): string = string + key + " " + str(world_db[key]) + "\n" string = string + mapsetter("MAP")() string = string + helper("ThingActions", "TA_ID")