Skip to content

Commit

Permalink
Minor bugfixes on login
Browse files Browse the repository at this point in the history
  • Loading branch information
RussellDash332 committed Oct 12, 2024
1 parent 44521fb commit 50afb6e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion autokattis/__init__.py
Original file line number Diff line number Diff line change
@@ -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()
4 changes: 2 additions & 2 deletions autokattis/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 50afb6e

Please # to comment.