Skip to content

Commit

Permalink
updates version detection
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Jan 26, 2022
1 parent 0e407ce commit 6472395
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.3.0
1.3.1
2 changes: 1 addition & 1 deletion arrapi/raws/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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. """
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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__
Expand Down

0 comments on commit 6472395

Please sign in to comment.