aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--geldschieberbot.py18
1 files changed, 0 insertions, 18 deletions
diff --git a/geldschieberbot.py b/geldschieberbot.py
index 41d3b3c..f7a3ad9 100644
--- a/geldschieberbot.py
+++ b/geldschieberbot.py
@@ -29,24 +29,6 @@ else:
"changes": {},
}
- # check if a legacy file layout is present
- store_dir = os.path.dirname(state_file)
- if os.path.isfile(os.path.join(store_dir, "balance.json")):
- with open(os.path.join(store_dir, "balance.json"), "r") as f:
- state["balance"] = json.load(f)
-
- with open(os.path.join(store_dir, "registration.json"), "r") as f:
- state["name2num"] = json.load(f)
- for _name in state["name2num"]:
- state["num2name"][state["name2num"][_name]] = _name
-
- with open(os.path.join(store_dir, "last_change.json"), "r") as f:
- state["changes"] = json.load(f)
- for _num in state["changes"]:
- _name = state["num2name"][_num]
- state["changes"][_name] = state["changes"][_num]
- del state["changes"][_num]
-
balance = state["balance"]
name2num = state["name2num"]
num2name = state["num2name"]