ソースを参照

작동 되게 수정함

2DU 9 年 前
コミット
03d55907e3
1 ファイル変更1 行追加1 行削除
  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= []