openpilot v0.8.2 release

This commit is contained in:
Vehicle Researcher
2021-02-23 16:46:22 -08:00
parent 22a4193109
commit aed724beda
415 changed files with 14848 additions and 26656 deletions
+5 -1
View File
@@ -27,7 +27,11 @@ class Api():
'iat': now,
'exp': now + timedelta(hours=1)
}
return jwt.encode(payload, self.private_key, algorithm='RS256').decode('utf8')
token = jwt.encode(payload, self.private_key, algorithm='RS256')
if isinstance(token, bytes):
token = token.decode('utf8')
return token
def api_get(endpoint, method='GET', timeout=None, access_token=None, **params):
backend = "https://api.commadotai.com/"