Skip to content

Commit

Permalink
change dir name
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Oct 26, 2024
1 parent d5869fb commit eefcdbe
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions osrs/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
from osrs.async_api.osrs.hiscores import Hiscore
from osrs.utils import RateLimiter

__all__ = ["Hiscore", "RateLimiter"]
6 changes: 3 additions & 3 deletions osrs/async_api/osrs/hiscores.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
from aiohttp import ClientSession
from pydantic import BaseModel

from src.exceptions import PlayerDoesNotExist, Undefined, UnexpectedRedirection
from src.utils import RateLimiter
from osrs.exceptions import PlayerDoesNotExist, Undefined, UnexpectedRedirection
from osrs.utils import RateLimiter

logger = logging.getLogger(__name__)

Expand Down Expand Up @@ -40,7 +40,7 @@ class PlayerStats(BaseModel):
activities: list[Activity]


class hiscore:
class Hiscore:
BASE_URL = "https://secure.runescape.com"

def __init__(
Expand Down
2 changes: 1 addition & 1 deletion osrs/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from src.utils.ratelimiter import RateLimiter
from osrs.utils.ratelimiter import RateLimiter

__all__ = [
"RateLimiter",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_async_hiscore.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import pytest
from aiohttp import ClientSession

from src.async_api.osrs.hiscores import Mode, PlayerStats, hiscore
from src.exceptions import PlayerDoesNotExist
from osrs.async_api.osrs.hiscores import Mode, PlayerStats, hiscore
from osrs.exceptions import PlayerDoesNotExist


@pytest.mark.asyncio
Expand Down

0 comments on commit eefcdbe

Please sign in to comment.