X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/f67de73a6cabbef2d84dc79706cbeb4441800860..dae8c833746bf716c05aaccba59a5fc049918163:/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)