diff options
author | SmallJoker <mk939@ymail.com> | 2014-10-05 18:26:25 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2014-10-05 18:26:25 +0200 |
commit | a4921558f37989e4554d2af418c71b0542c77c47 (patch) | |
tree | b3ead2eab82bcd6841f1f9d520921b6f98decbc6 | |
parent | 8d5709661fbd89b4e59aa0f0fa5c49d65569c40d (diff) |
Fix error in update script [untested]
https://forum.minetest.net/viewtopic.php?p=156986#p156986
-rwxr-xr-x | update_from_db.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update_from_db.py b/update_from_db.py index 123b200..2aefcf7 100755 --- a/update_from_db.py +++ b/update_from_db.py @@ -31,7 +31,7 @@ def addpage(page): pages = int(l["pages"]) for s in l["skins"]: f = open(skinsdir + "character_" + str(i) + ".png", "wb") - f.write(base64.b64decode(s["img"])) + f.write(base64.b64decode(bytes(s["img"], 'utf-8'))) f.close() f = open(metadir + "character_" + str(i) + ".txt", "w") f.write(str(s["name"]) + '\n') |