mirror of https://github.com/stijndcl/didier
Merge pull request #166 from stijndcl/fix-deadlines
Fix bug in deadlines, update isort pre-commit hookpull/172/head v3.4.1
commit
1ae7790ca2
|
@ -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
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ class Deadlines(EmbedBaseModel):
|
|||
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
|
||||
|
||||
|
|
|
@ -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,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
|
||||
|
|
Loading…
Reference in New Issue