diff --git a/VERSION b/VERSION index 589268e..6261a05 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.0 \ No newline at end of file +1.3.1 \ No newline at end of file diff --git a/arrapi/raws/base.py b/arrapi/raws/base.py index fad7c2b..e32efd6 100644 --- a/arrapi/raws/base.py +++ b/arrapi/raws/base.py @@ -25,7 +25,7 @@ def __init__(self, url, apikey, v1=False, session=None): if "version" not in status or status["version"] is None: raise ConnectionFailure(f"Failed to Connect to {self.url}") if v1 is False: - self.v3 = int(status["version"][0]) > 2 + self.v3 = int(status["version"].split(".")[0]) > 2 def _get(self, path, **kwargs): """ process get request. """ diff --git a/docs/conf.py b/docs/conf.py index 6390ac0..f55e4b5 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -11,7 +11,7 @@ # documentation root, use os.path.abspath to make it absolute, like shown here. # # import os -import sys +import sys, datetime from os.path import abspath, dirname, join path = dirname(dirname(abspath(__file__))) sys.path.append(path) @@ -23,7 +23,7 @@ project = arrapi.__project_name__ author = arrapi.__author__ -copyright = f"2021, {author}" +copyright = f"{datetime.datetime.now().year}, {author}" # The full version, including alpha/beta/rc tags release = arrapi.__version__