summaryrefslogtreecommitdiff
path: root/update_from_db.py
diff options
context:
space:
mode:
Diffstat (limited to 'update_from_db.py')
-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')