Skip to content

Commit

Permalink
Fix typos with codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
int-y1 committed Sep 20, 2022
1 parent 0ec3a5f commit e749d63
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Point prediction
<img src="images/predict.png" width=500>

# Features
The features of JOMD are split up into seperate cogs each handling their related commands.
The features of JOMD are split up into separate cogs, each handling its related commands.

### User Cog
```
Expand Down Expand Up @@ -78,7 +78,7 @@ If you also want to add your DMOJ api token use
export JOMD_TOKEN="INSERT DMOJ API TOKEN HERE"
```

**JOMD also uses SQLAlchemy as a orm and Alembic as a migration tool. You need to make sure the database is upto date**
**JOMD also uses SQLAlchemy as an ORM and Alembic as a migration tool. You need to make sure the database is up to date.**

**If you have cloned this repository before the addition of Alembic, find the corresponding hash in /alembic and run**

Expand Down
2 changes: 1 addition & 1 deletion extensions/contest.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ async def ranklist(ctx):
usernames.append((await query.get_user(arg)).username)

# The only way to calculate rating changes is by getting the volitility of all the users
# that means 100+ seperate api calls
# that means 100+ separate api calls
# How does evan do it?
# TODO: Use the custom api on evan's site
import requests
Expand Down
6 changes: 3 additions & 3 deletions extensions/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@


class PeakConverter(base.BaseConverter[str]):
"""Implementation of the base converter for converting arguments into a peak arguement."""
"""Implementation of the base converter for converting arguments into a peak argument."""

__slots__ = ()

Expand All @@ -37,7 +37,7 @@ async def convert(self, arg: str) -> str:


class GraphTypeConverter(base.BaseConverter[str]):
"""Implementation of the base converter for converting arguments into a graph type arguement."""
"""Implementation of the base converter for converting arguments into a graph type argument."""

__slots__ = ()

Expand All @@ -50,7 +50,7 @@ async def convert(self, arg: str) -> str:


class PercentageConverter(base.BaseConverter[str]):
"""Implementation of the base converter for converting arguments into a percentage arguement."""
"""Implementation of the base converter for converting arguments into a percentage argument."""

__slots__ = ()

Expand Down
2 changes: 1 addition & 1 deletion utils/jomd_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async def convert(self, arg: str) -> t.List[int]:
if "-" in arg:
arg = arg.split("-")
if len(arg) != 2:
raise TypeError("Too many arguements, invalid range")
raise TypeError("Too many arguments, invalid range")
return list(map(int, arg))
point_high = point_low = int(arg)
return [point_high, point_low]
Expand Down
4 changes: 2 additions & 2 deletions utils/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ async def get_submissions(
self, user: str = None, problem: str = None, language: str = None, result: str = None
) -> List[Submission_DB]:
# This function is the only one which might take a while to run and
# has data that is added reguarly. asyncio.gather can apply to all
# has data that is added regularly. asyncio.gather can apply to all
# functions but this one is the only one which really needs it
a = API()
page = 1
Expand All @@ -333,7 +333,7 @@ async def get_submissions(
start = time.time()
await a.get_submissions(user=user, problem=problem, language=language, result=result, page=page)

logger.info("Got submissions for %s, time elasped %s", user, time.time() - start)
logger.info("Got submissions for %s, time elapsed %s", user, time.time() - start)
start = time.time()
q = session.query(Submission_DB)
q = q.filter(Submission_DB._user == user)
Expand Down

0 comments on commit e749d63

Please sign in to comment.