Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dimbleby committed Sep 4, 2023
1 parent 731e0ad commit a35d6cf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 31 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
--output install-poetry.py \
https://install.python-poetry.org && \
python3 install-poetry.py && \
python3 -m venv /opt/venv
python3 -m venv --without-pip /opt/venv

ENV VIRTUAL_ENV=/opt/venv \
PATH="/opt/venv/bin:$PATH"
Expand Down
6 changes: 2 additions & 4 deletions hunt/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,7 @@ def __str__(self) -> str:
HuntEvent.CLUE_ADV: "progressed to",
}
user = self.user.get_username()
text = f"At {self.time} {user} {actions[self.type]} level {self.level}"
return text
return f"At {self.time} {user} {actions[self.type]} level {self.level}"


class ChatMessage(models.Model):
Expand All @@ -151,12 +150,11 @@ class Meta:

@override
def __str__(self) -> str:
text = ", ".join(
return ", ".join(
[
f"{self.team.get_username()}",
f"{self.level}",
f"User: {self.name}",
f"Message: {self.content}",
]
)
return text
50 changes: 25 additions & 25 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ django = "^4.2"
django-storages = { version = "^1.13.1", extras = ["azure"] }
djangorestframework = "^3.14.0"
geopy = "^2.4.0"
holidays = "^0.31"
holidays = "^0.32"
pillow = "^10.0.0"
typing-extensions = "^4.7.1"
whitenoise = "^6.4.0"
Expand Down Expand Up @@ -101,6 +101,7 @@ select = [
"PLE", # pylint errors
"PLW", # pylint warnings
"PTH", # flake8-use-pathlib
"RET", # flake8-return
"RUF", # ruff
"SIM", # flake8-simplify
"TCH", # flake8-type-checking
Expand Down

0 comments on commit a35d6cf

Please sign in to comment.