mirror of
https://github.com/minetest-mods/skinsdb.git
synced 2024-12-23 07:50:18 +01:00
Fix error in update script [untested]
https://forum.minetest.net/viewtopic.php?p=156986#p156986
This commit is contained in:
parent
8d5709661f
commit
a4921558f3
@ -31,7 +31,7 @@ def addpage(page):
|
|||||||
pages = int(l["pages"])
|
pages = int(l["pages"])
|
||||||
for s in l["skins"]:
|
for s in l["skins"]:
|
||||||
f = open(skinsdir + "character_" + str(i) + ".png", "wb")
|
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.close()
|
||||||
f = open(metadir + "character_" + str(i) + ".txt", "w")
|
f = open(metadir + "character_" + str(i) + ".txt", "w")
|
||||||
f.write(str(s["name"]) + '\n')
|
f.write(str(s["name"]) + '\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user