From f4127b10086251cdc83becec7602001a9b44f12b Mon Sep 17 00:00:00 2001 From: vypr Date: Thu, 9 Apr 2020 08:29:17 -0400 Subject: [PATCH] Fix bug with OT readings. --- goarch_api/client.py | 2 +- goarch_api/models.py | 3 ++- setup.py | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/goarch_api/client.py b/goarch_api/client.py index c19bed8..57ab411 100644 --- a/goarch_api/client.py +++ b/goarch_api/client.py @@ -24,7 +24,7 @@ class HTTPClient: def __init__(self): self.session = requests.session() - base_ua = 'goarch_api (https://github.com/vypr/goarch_api 1.1.0), Python/' + base_ua = 'goarch_api (https://github.com/Oikonomia/goarch_api 1.1.1), Python/' self.user_agent = f"{base_ua}{sys.version_info[0]}.{sys.version_info[1]}" def request(self, method, path): diff --git a/goarch_api/models.py b/goarch_api/models.py index 88671ae..2c40fd6 100644 --- a/goarch_api/models.py +++ b/goarch_api/models.py @@ -29,8 +29,9 @@ class Reading: is_gospel = (_type == "G" and type_bb == "gospel") is_epistle = (_type == "E" and type_bb == "epistle") is_matins = (_type == "MG" and type_bb == "mg") + is_ot = (_type == "OT" and type_bb == "ot") - if not (is_gospel ^ is_epistle ^ is_matins): + if not (is_ot ^ is_gospel ^ is_epistle ^ is_matins): raise Exception("Invalid or mismatching reading types.") if is_epistle: diff --git a/setup.py b/setup.py index 62957b4..1116180 100644 --- a/setup.py +++ b/setup.py @@ -2,10 +2,10 @@ from setuptools import setup setup( name="goarch_api", - version="1.1.0", + version="1.1.1", author="Elliott Pardee", author_email="me@vypr.xyz", - url="https://github.com/vypr/goarch_api", + url="https://github.com/Oikonomia/goarch_api", license="GPLv3", packages=["goarch_api"], description="A Python interface for the Greek Orthodox Archdiocese of America's Chapel API.",