Fix type annotation and README

This commit is contained in:
Thomas Sileo
2018-05-29 21:47:28 +02:00
parent 6aea610fb6
commit 48ab7137ab
3 changed files with 6 additions and 3 deletions

2
app.py
View File

@@ -83,7 +83,7 @@ JWT_SECRET = get_secret_key('jwt')
JWT = JSONWebSignatureSerializer(JWT_SECRET)
def _admin_jwt_token() -> str:
return JWT.dumps({'me': 'ADMIN', 'ts': datetime.now().timestamp()}).decode('utf-8')
return JWT.dumps({'me': 'ADMIN', 'ts': datetime.now().timestamp()}).decode('utf-8') # type: ignore
ADMIN_API_KEY = get_secret_key('admin_api_key', _admin_jwt_token)