Skip to content

Commit 6472395

Browse files
committed
updates version detection
1 parent 0e407ce commit 6472395

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.3.0
1+
1.3.1

arrapi/raws/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, url, apikey, v1=False, session=None):
2525
if "version" not in status or status["version"] is None:
2626
raise ConnectionFailure(f"Failed to Connect to {self.url}")
2727
if v1 is False:
28-
self.v3 = int(status["version"][0]) > 2
28+
self.v3 = int(status["version"].split(".")[0]) > 2
2929

3030
def _get(self, path, **kwargs):
3131
""" process get request. """

docs/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# documentation root, use os.path.abspath to make it absolute, like shown here.
1212
#
1313
# import os
14-
import sys
14+
import sys, datetime
1515
from os.path import abspath, dirname, join
1616
path = dirname(dirname(abspath(__file__)))
1717
sys.path.append(path)
@@ -23,7 +23,7 @@
2323

2424
project = arrapi.__project_name__
2525
author = arrapi.__author__
26-
copyright = f"2021, {author}"
26+
copyright = f"{datetime.datetime.now().year}, {author}"
2727

2828
# The full version, including alpha/beta/rc tags
2929
release = arrapi.__version__

0 commit comments

Comments
 (0)