diff --git a/autokattis/__init__.py b/autokattis/__init__.py index a24b98f..f1442eb 100644 --- a/autokattis/__init__.py +++ b/autokattis/__init__.py @@ -1,4 +1,6 @@ from .api.openkattis import OpenKattis from .api.nuskattis import NUSKattis +from .api.utils import suppress_warnings -Kattis = OpenKattis +Kattis = OpenKattis # backwards compatibility :) +suppress_warnings() diff --git a/autokattis/api/__init__.py b/autokattis/api/__init__.py index d7b5d15..b0325b4 100644 --- a/autokattis/api/__init__.py +++ b/autokattis/api/__init__.py @@ -26,11 +26,11 @@ def __init__(self, base_url, username, password): def new_get(self, *args, **kwargs): try: return self.session.get(*args, **kwargs) - except: return self.session.new_get(*args, **kwargs) + except: return self.new_get(*args, **kwargs) def new_post(self, *args, **kwargs): try: return self.session.post(*args, **kwargs) - except: return self.session.new_post(*args, **kwargs) + except: return self.new_post(*args, **kwargs) def get_base_url(self): return self.base_url diff --git a/setup.py b/setup.py index 0e103e5..1713768 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup_args = dict( name='autokattis', - version='2.0', + version='2.0.1', description='Updated Kattis API wrapper', long_description_content_type="text/markdown", long_description=README,