2
0
2DU 9 жил өмнө
parent
commit
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= []