Skip to content

Commit

Permalink
Merge pull request #250 from abaisero/fix/update-pre-commit-black
Browse files Browse the repository at this point in the history
fix:  fix black pre-commit hook import error
  • Loading branch information
amj authored Apr 29, 2022
2 parents 3a999ed + 413a2f2 commit dd75a1b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/psf/black
rev: 19.3b0
rev: 22.3.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
Expand Down
6 changes: 3 additions & 3 deletions agagd/agagd_core/jinga2.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@

def get_members_name_and_id(value):
"""
Provides jinja2 custom filter which returns
the members information as
"[member's full name] (member_id)".
Provides jinja2 custom filter which returns
the members information as
"[member's full name] (member_id)".
"""
try:
member = agagd_models.Member.objects.values("full_name", "member_id").get(
Expand Down
2 changes: 1 addition & 1 deletion agagd/agagd_core/tables/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def render(self, value):
"<a href='{}'>{}</a>".format(chapter_url, chapter_name)
)
except:
chapter_html = u"\u2014"
chapter_html = "\u2014"

return chapter_html

Expand Down
2 changes: 1 addition & 1 deletion agagd/agagd_core/views/players_profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def get(self, request, *args, **kwargs):
game_date = None

# Check for 0000-00-00 dates
if game.game_date != u"0000-00-00":
if game.game_date != "0000-00-00":
game_date = game.game_date

t_dat["date"] = t_dat.get("date", game_date)
Expand Down

0 comments on commit dd75a1b

Please sign in to comment.