Commit d4456d8a authored by Vincent Le gallic's avatar Vincent Le gallic

Quand on renomme ses variables, on essaye de le faire bien…

parent b264056f
......@@ -1114,7 +1114,7 @@ def update_photo(request, idbde=None):
# On envoie la photo au serveur NK
photodata = photo.read()
photob64 = base64.b64encode(photodata)
size = len(photodata)
size = len(photob64)
format = photo.name.rsplit('.',1)[-1]
sock.write("update_photo %s" % json.dumps([idbde, size, format]))
middleanswer = full_read(sock)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment