X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f67de73a6cabbef2d84dc79706cbeb4441800860..bdc2a3ea27e2980c8c0fbdba2efe6b65291692c2:/apps/apiclient/__init__.py diff --git a/apps/apiclient/__init__.py b/apps/apiclient/__init__.py index 2709ca06..56ecb96d 100644 --- a/apps/apiclient/__init__.py +++ b/apps/apiclient/__init__.py @@ -23,7 +23,7 @@ class NotAuthorizedError(BaseException): def api_call(user, path, data=None, beta=False): from .models import OAuthConnection api_url = BETA_API_URL if beta else WL_API_URL - conn = OAuthConnection.get(user) + conn = OAuthConnection.get(user=user, beta=beta) if not conn.access: raise NotAuthorizedError("No WL authorization for user %s." % user) token = oauth2.Token(conn.token, conn.token_secret)