diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 353f2b7..28d1c1f 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -4,6 +4,7 @@ + @@ -20,7 +21,8 @@ - + + @@ -45,7 +47,7 @@ - + @@ -53,7 +55,7 @@ - + @@ -107,15 +109,15 @@ - + - - + + @@ -124,7 +126,7 @@ - + @@ -138,17 +140,17 @@ - - + + - + - - + + @@ -201,14 +203,14 @@ @@ -400,6 +402,16 @@ + + + + + + + + + + @@ -428,16 +440,21 @@ - + - - + + + + + + + - + @@ -447,26 +464,6 @@ - - - - - - - - - - - - - - - - - - - - @@ -474,14 +471,19 @@ - + - - + + + + + + + + + - - - + diff --git a/goarch_api/client.py b/goarch_api/client.py index 810be1d..a0e5cc5 100644 --- a/goarch_api/client.py +++ b/goarch_api/client.py @@ -6,7 +6,7 @@ class HTTPClient: def __init__(self): self.session = requests.session() - user_agent = 'goarch_api (https://github.com/Oikonomia/goarch_api 1.0.4), Python/' + user_agent = 'goarch_api (https://github.com/Oikonomia/goarch_api 1.0.5), Python/' self.user_agent = f"{user_agent}{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 e077001..7fb2439 100644 --- a/goarch_api/models.py +++ b/goarch_api/models.py @@ -48,9 +48,11 @@ class Icon: # this is like a Reading/Translation hybrid class LectionaryReading: - def __init__(self, _id, _type): + def __init__(self, _id, _type, title, short_title): self.id = _id self.type = _type + self.title = title + self.short_title = short_title class Hymn: diff --git a/goarch_api/saint.py b/goarch_api/saint.py index f2dfbca..bb69702 100644 --- a/goarch_api/saint.py +++ b/goarch_api/saint.py @@ -47,8 +47,10 @@ class Saint: for reading in tree.find("lectionary").iterchildren(): _id = reading.find("id").text _type = reading.get("type") + title = reading.find("title").text + short_title = reading.find("shorttitle").text - lectionary_reading = LectionaryReading(_id, _type) + lectionary_reading = LectionaryReading(_id, _type, title, short_title) self.lectionary.append(lectionary_reading) diff --git a/setup.py b/setup.py index 06c4faa..4356f1c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ from setuptools import setup setup( name="goarch_api", - version="1.0.4", + version="1.0.5", author="Elliott Pardee", author_email="me@vypr.xyz", url="https://github.com/Oikonomia/goarch_api",