fix: don't print the full author/user object when calling Quote().to_pretty()
This commit is contained in:
parent
378f314559
commit
e428cd0672
3 changed files with 5 additions and 5 deletions
|
|
@ -15,10 +15,10 @@ type: application
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# 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.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# 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
|
# 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
|
# 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.
|
# follow Semantic Versioning. They should reflect the version the application is using.
|
||||||
# It is recommended to use it with quotes.
|
# It is recommended to use it with quotes.
|
||||||
appVersion: "0.2.6"
|
appVersion: "0.2.7"
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ image:
|
||||||
# This sets the pull policy for images.
|
# This sets the pull policy for images.
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# 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/
|
# 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: []
|
imagePullSecrets: []
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ class Quote(BaseModel):
|
||||||
last_updated_at: datetime.datetime
|
last_updated_at: datetime.datetime
|
||||||
|
|
||||||
def as_pretty(self) -> str:
|
def as_pretty(self) -> str:
|
||||||
return f"«{self.quote}» - {self.author}"
|
return f"«{self.quote}» - {self.author.user}"
|
||||||
|
|
||||||
def as_pretty_saved(self):
|
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}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue