summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2014-10-05 18:26:25 +0200
committerSmallJoker <mk939@ymail.com>2014-10-05 18:26:25 +0200
commita4921558f37989e4554d2af418c71b0542c77c47 (patch)
treeb3ead2eab82bcd6841f1f9d520921b6f98decbc6
parent8d5709661fbd89b4e59aa0f0fa5c49d65569c40d (diff)
Fix error in update script [untested]
https://forum.minetest.net/viewtopic.php?p=156986#p156986
-rwxr-xr-xupdate_from_db.py2
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')