Skip to content

Commit

Permalink
Merge pull request #166 from stijndcl/fix-deadlines
Browse files Browse the repository at this point in the history
Fix bug in deadlines, update isort pre-commit hook
  • Loading branch information
stijndcl authored Feb 16, 2023
2 parents ce7f2ea + 96db71a commit 1ae7790
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/pycqa/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort

Expand Down
2 changes: 1 addition & 1 deletion didier/data/embeds/deadlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def to_embed(self, **kwargs) -> discord.Embed:
embed.set_image(url="https://c.tenor.com/RUzJ3lDGQUsAAAAC/iron-man-you-can-rest-now.gif")
return embed

for i in range(1, 6):
for i in range(1, 7):
if i not in deadlines_grouped:
continue

Expand Down
2 changes: 1 addition & 1 deletion didier/utils/types/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,6 @@ def re_replace_with_list(pattern: str, string: str, replacements: list[str]) ->

def get_edu_year_name(year: int) -> str: # pragma: no cover
"""Get the string representation of a university year"""
years = ["1st Bachelor", "2nd Bachelor", "3rd Bachelor", "1st Master", "2nd Master"]
years = ["1st Bachelor", "2nd Bachelor", "3rd Bachelor", "1st Master", "2nd Master", "Elective Courses (Master)"]

return years[year]
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
black==22.3.0
coverage[toml]==6.4.1
freezegun==1.2.1
isort==5.12.0
mypy==0.961
pre-commit==2.20.0
pytest==7.1.2
Expand Down

0 comments on commit 1ae7790

Please sign in to comment.