Skip to content
This repository has been archived by the owner on Jun 10, 2023. It is now read-only.

Commit

Permalink
add self
Browse files Browse the repository at this point in the history
  • Loading branch information
spookybear0 committed Sep 30, 2020
1 parent 68287fb commit 61eef62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gdpys/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,19 @@ async def get_level(self, id: int) -> Level:
"""Get a level object"""
return await level_helper.get_level_obj(id)

async def star_to_difficulty(stars: int) -> int:
async def star_to_difficulty(self, stars: int) -> int:
"""Convert star rating to a difficulty"""
return await level_helper.star_to_difficulty(stars)

async def like_level(id: int):
async def like_level(self, id: int):
"""Bump a level's likes by one"""
return await level_helper.bump_likes(id)

async def upload_level(level: Level):
async def upload_level(self, level: Level):
"""Uploads a level from a level object"""
return await level_helper.upload_level(level)

async def rate_level(rating: Rating):
async def rate_level(self, rating: Rating):
"""Rates a level given a Rating object"""
return await level_helper.rate_level(rating)

Expand Down

0 comments on commit 61eef62

Please sign in to comment.