diff --git a/README.md b/README.md index a5fd14a..95cfe70 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ Point prediction # 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 ``` @@ -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** diff --git a/extensions/contest.py b/extensions/contest.py index 42b1d32..3e279f0 100644 --- a/extensions/contest.py +++ b/extensions/contest.py @@ -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 diff --git a/extensions/plot.py b/extensions/plot.py index b3fa1fd..f73d900 100644 --- a/extensions/plot.py +++ b/extensions/plot.py @@ -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__ = () @@ -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__ = () @@ -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__ = () diff --git a/utils/jomd_common.py b/utils/jomd_common.py index 7006bcc..f7c183a 100644 --- a/utils/jomd_common.py +++ b/utils/jomd_common.py @@ -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] diff --git a/utils/query.py b/utils/query.py index eec215b..e4167f0 100644 --- a/utils/query.py +++ b/utils/query.py @@ -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 @@ -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)