fix: don't print the full author/user object when calling Quote().to_pretty()

This commit is contained in:
cătălin 2025-02-13 10:55:00 +01:00
commit e428cd0672
No known key found for this signature in database
3 changed files with 5 additions and 5 deletions

View file

@ -15,10 +15,10 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.6
version: 0.2.7
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.2.6"
appVersion: "0.2.7"

View file

@ -11,7 +11,7 @@ image:
# This sets the pull policy for images.
pullPolicy: Always
# Overrides the image tag whose default is the chart appVersion.
tag: "0.2.6"
tag: "0.2.7"
# This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
imagePullSecrets: []

View file

@ -80,7 +80,7 @@ class Quote(BaseModel):
last_updated_at: datetime.datetime
def as_pretty(self) -> str:
return f"«{self.quote}» - {self.author}"
return f"«{self.quote}» - {self.author.user}"
def as_pretty_saved(self):
return f"He añadido la cita «{self.quote}» de {self.author}"
return f"He añadido la cita «{self.quote}» de {self.author.user}"