Skip to content

Commit

Permalink
Fixed event index linking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
euanwm committed Mar 7, 2022
1 parent 28a5868 commit 8459f7e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions sport80/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,5 @@
Totally unofficial Sport80 API package. Meh.
"""

from .SportEighty import SportEighty
from .SportEightyHTTP import SportEightyHTTP
from .helpers import resolve_to_ip
from .sport80 import SportEighty
from .sport80_http_client import SportEightyHTTP
2 changes: 1 addition & 1 deletion sport80/SportEighty.py → sport80/sport80.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
""" Main file """
from SportEightyHTTP import SportEightyHTTP
from .sport80_http_client import SportEightyHTTP


class SportEighty:
Expand Down
6 changes: 3 additions & 3 deletions sport80/SportEightyHTTP.py → sport80/sport80_http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
import logging
from urllib.parse import urljoin
import requests
from pages_enum import EndPoint
from helpers import pull_tables
from .pages_enum import EndPoint
from .helpers import pull_tables


class SportEightyHTTP:
""" Contains all the big annoying functions so the main API file is nice and neat """

def __init__(self, domain: str, debug_lvl: logging = logging.INFO):
def __init__(self, domain: str, debug_lvl: logging = logging.WARNING):
self.http_session = requests.Session()
self.domain = domain
logging.basicConfig(level=debug_lvl)
Expand Down

0 comments on commit 8459f7e

Please sign in to comment.