From 9e5345bac5e026b58393c65f13f9fb66702f7d3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0lker=20G=C3=BCzelkokar?= Date: Thu, 1 Apr 2021 17:40:13 +0300 Subject: [PATCH] fix!: Changing Bearer token to Sdk version bump to v0.1.5 --- dclist/__init__.py | 4 ++-- dclist/gqlhttp.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dclist/__init__.py b/dclist/__init__.py index 2c67fab..de52d72 100644 --- a/dclist/__init__.py +++ b/dclist/__init__.py @@ -13,11 +13,11 @@ __author__ = 'ilkergzlkkr' __copyright__ = 'Copyright 2021-present ilkergzlkkr' __license__ = 'MIT' -__version__ = '0.1.2' +__version__ = '0.1.5' from collections import namedtuple VersionInfo = namedtuple('VersionInfo', 'major minor micro releaselevel serial') -version_info = VersionInfo(major=0, minor=1, micro=2, releaselevel='final', serial=0) +version_info = VersionInfo(major=0, minor=1, micro=5, releaselevel='final', serial=0) version_info = f'{version_info.major}.{version_info.minor}.{version_info.micro}' diff --git a/dclist/gqlhttp.py b/dclist/gqlhttp.py index 5b07325..825d6ae 100644 --- a/dclist/gqlhttp.py +++ b/dclist/gqlhttp.py @@ -59,7 +59,7 @@ class GQLHTTPClient: def __init__(self, api_token, *args, **kwargs): self.loop = kwargs.get('loop') or asyncio.get_event_loop() self.token_provided = api_token is not None - self.__auth = 'Bearer '+ (api_token or os.getenv('DCLIST_TOKEN') or '') + self.__auth = 'Sdk '+ (api_token or os.getenv('DCLIST_TOKEN') or '') self._transporter = kwargs.get('transporter') or AIOHTTPTransport(url=self.BASE, headers={'Authorization': self.__auth})