Fixed name parametrs in env

This commit is contained in:
Andrey Kovalev 2021-02-25 19:01:09 +03:00
parent 61ea10f1d2
commit b1d42ece61

View File

@ -98,9 +98,9 @@ def profile_page(request):
def auth_user(request):
admin_creds = {
'email': os.environ.get('Admin_email'),
'email': os.environ.get('ACCESS_CONTROLLER_API_EMAIL'),
'subdomain': 'ngenix1612197338',
'token': os.environ.get('Oauth_token'),
'token': os.environ.get('ACCESS_CONTROLLER_API_TOKEN'),
}
admin = Zenpy(**admin_creds)
zenpy_user: ZenpyUser = admin.users.search(request.user.email).values[0]