Explorar el Código

작동 되게 수정함

2DU hace 9 años
padre
commit
03d55907e3
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      app.py

+ 1 - 1
app.py

@@ -143,7 +143,7 @@ except:
     except:
         curs.execute("create table cat(title text, cat text)")
 
-app.secret_key = str(hashlib.sha512(bytes(data['key'])).hexdigest())
+app.secret_key = hashlib.sha512(bytes(data['key'], 'ascii')).hexdigest()
 
 def show_diff(seqm):
     output= []