1
0
mirror of https://git.sr.ht/~tsileo/microblog.pub synced 2025-06-05 21:59:23 +02:00

Fix the deploy build

This commit is contained in:
Thomas Sileo
2018-05-19 08:54:46 +02:00
parent 4d62511332
commit f6a7e5a357
3 changed files with 5 additions and 4 deletions

4
app.py
View File

@ -58,8 +58,8 @@ app.secret_key = get_secret_key('flask')
JWT_SECRET = get_secret_key('jwt')
JWT = JSONWebSignatureSerializer(JWT_SECRET)
with open('config/jwt_token', 'w+') as f:
f.write(JWT.dumps({'type': 'admin_token'}))
with open('config/jwt_token', 'wb+') as f:
f.write(JWT.dumps({'type': 'admin_token'})) # type: ignore
SIG_AUTH = HTTPSigAuth(ID+'#main-key', KEY.privkey)